Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed May 27, 2022
1 parent 8977cf7 commit cfcc455
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion py/selenium/webdriver/common/actions/mouse_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ class MouseButton:
RIGHT = 2
BACK = 3
FORWARD = 4

1 change: 1 addition & 0 deletions rb/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ActionBuilder:
* Add support for pointer event properties
* Implement scroll wheel support
* Deprecate ordered pair parameters for pause method in favor of keywords
* Deprecate move to element with offset changing origin to top left of element

4.1.0 (2021-11-22)
=========================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ module WebDriver
end
end

describe 'pen stylus' do
describe 'pen stylus', except: {browser: :firefox, reason: 'Unknown pointerType'} do
it 'sets pointer event properties' do
driver.get 'https://titusfortner.com/examples/pointerActionsPage.html'
pointer_area = driver.find_element(id: 'pointerArea')
Expand Down Expand Up @@ -374,6 +374,7 @@ module WebDriver
iframe = driver.find_element(tag_name: 'iframe')
driver.switch_to.frame(iframe)
checkbox = driver.find_element(name: 'scroll_checkbox')
sleep 0.5
expect(in_viewport?(checkbox)).to eq true
end

Expand Down
10 changes: 5 additions & 5 deletions rb/spec/integration/selenium/webdriver/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,39 +45,39 @@ module WebDriver
driver.navigate.to url_for('formPage.html')
driver.find_element(id: 'submitButton').submit

wait_for_new_url('formPage.html')
sleep 0.5
expect(driver.title).to eq('We Arrive Here')
end

it 'any input element in form' do
driver.navigate.to url_for('formPage.html')
driver.find_element(id: 'checky').submit

wait_for_new_url('formPage.html')
sleep 0.5
expect(driver.title).to eq('We Arrive Here')
end

it 'any element in form' do
driver.navigate.to url_for('formPage.html')
driver.find_element(css: 'form > p').submit

wait_for_new_url('formPage.html')
sleep 0.5
expect(driver.title).to eq('We Arrive Here')
end

it 'button with id submit' do
driver.navigate.to url_for('formPage.html')
driver.find_element(id: 'submit').submit

wait_for_new_url('formPage.html')
sleep 0.5
expect(driver.title).to eq('We Arrive Here')
end

it 'button with name submit' do
driver.navigate.to url_for('formPage.html')
driver.find_element(name: 'submit').submit

wait_for_new_url('formPage.html')
sleep 0.5
expect(driver.title).to eq('We Arrive Here')
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initialize

extract_browser_from_bazel_target_name

@driver = ENV.fetch('WD_SPEC_DRIVER', :chrome).to_sym
@driver = ENV.fetch('WD_SPEC_DRIVER', :firefox).to_sym
@driver_instance = nil
end

Expand Down

0 comments on commit cfcc455

Please sign in to comment.