File tree Expand file tree Collapse file tree 3 files changed +19
-16
lines changed
java/src/test/java/dev/selenium/drivers Expand file tree Collapse file tree 3 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 31
31
steps :
32
32
- name : Checkout GitHub repo
33
33
uses : actions/checkout@v4
34
- - name : Install Safari Technology Preview
35
- if : matrix.os == 'macos-latest'
36
- run : |
37
- brew install --cask safari-technology-preview
38
34
- name : Remove driver directories Windows
39
35
if : matrix.os == 'windows-latest'
40
36
run : |
55
51
bundler-cache : true
56
52
- name : Install Gems Nightly non-Windows
57
53
if : matrix.release == 'nightly' && matrix.os != 'windows-latest'
58
- run :
54
+ run :
59
55
|
60
56
latest_nightly_webdriver=$(./scripts/latest-nightly-version.sh rubygems selenium-webdriver)
61
57
cd examples/ruby
66
62
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
63
- name : Install Gems Nightly Windows
68
64
if : matrix.release == 'nightly' && matrix.os == 'windows-latest'
69
- run :
65
+ run :
70
66
|
71
67
$latest_nightly_webdriver = ./scripts/latest-nightly-version.ps1 rubygems selenium-webdriver
72
68
cd examples/ruby
84
80
with :
85
81
distribution : ' temurin'
86
82
java-version : 11
87
- - name : Install and Configure Safari and WebDriver
88
- if : matrix.os == 'macos-latest'
89
- run : |
90
- # Check if safaridriver exists
91
- if [[ ! -f "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" ]]; then
92
- echo "safaridriver not found. Exiting."
93
- exit 1
94
- fi
95
83
- name : Run tests
96
84
uses : nick-invision/retry@v3.0.0
97
85
with :
Original file line number Diff line number Diff line change @@ -47,5 +47,18 @@ public void setPageLoadStrategyNone() {
47
47
driver .quit ();
48
48
}
49
49
}
50
+
51
+ @ Test
52
+ public void setAcceptInsecureCerts () {
53
+ ChromeOptions chromeOptions = new ChromeOptions ();
54
+ chromeOptions .setAcceptInsecureCerts (true );
55
+ WebDriver driver = new ChromeDriver (chromeOptions );
56
+ try {
57
+ // Navigate to Url
58
+ driver .get ("https://selenium.dev" );
59
+ } finally {
60
+ driver .quit ();
61
+ }
62
+ }
50
63
}
51
64
Original file line number Diff line number Diff line change 13
13
describe 'Service' do
14
14
let ( :directory ) { "#{ Dir . home } /Library/Logs/com.apple.WebDriver/*" }
15
15
16
- it 'enable logs' do
16
+ it 'enables logs' do
17
17
original_count = Dir [ directory ] . length
18
18
service = Selenium ::WebDriver ::Service . safari
19
19
31
31
} . to raise_error ( Selenium ::WebDriver ::Error ::WebDriverError , /Safari Service does not support setting log output/ )
32
32
end
33
33
end
34
+ end
34
35
36
+ RSpec . describe 'Safari Technology Preview' , skip : "This test is being skipped as GitHub Actions have no support for Safari Technology Preview" do
35
37
it 'sets the technology preview' do
36
38
Selenium ::WebDriver ::Safari . technology_preview!
37
39
local_driver = Selenium ::WebDriver . for :safari
38
40
expect ( local_driver . capabilities . browser_name ) . to eq 'Safari Technology Preview'
39
41
end
40
- end
42
+ end
You can’t perform that action at this time.
0 commit comments