File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
examples/ruby/spec/browsers Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 35
35
if : matrix.os == 'macos-latest'
36
36
run : |
37
37
brew install --cask safari-technology-preview
38
+ sudo safaridriver --enable
38
39
- name : Remove driver directories Windows
39
40
if : matrix.os == 'windows-latest'
40
41
run : |
55
56
bundler-cache : true
56
57
- name : Install Gems Nightly non-Windows
57
58
if : matrix.release == 'nightly' && matrix.os != 'windows-latest'
58
- run :
59
+ run :
59
60
|
60
61
latest_nightly_webdriver=$(./scripts/latest-nightly-version.sh rubygems selenium-webdriver)
61
62
cd examples/ruby
66
67
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
68
- name : Install Gems Nightly Windows
68
69
if : matrix.release == 'nightly' && matrix.os == 'windows-latest'
69
- run :
70
+ run :
70
71
|
71
72
$latest_nightly_webdriver = ./scripts/latest-nightly-version.ps1 rubygems selenium-webdriver
72
73
cd examples/ruby
88
89
if : matrix.os == 'macos-latest'
89
90
run : |
90
91
# Check if safaridriver exists
91
- if [[ ! -f "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" ]]; then
92
+ if [[ ! -x "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" ]]; then
92
93
echo "safaridriver not found. Exiting."
93
94
exit 1
94
95
fi
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' 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