Skip to content

Commit

Permalink
more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Jun 23, 2022
1 parent da30a46 commit 4559fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/browser/wait_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def func():
def test_waits_until_text_field_present_when_acting_on_element_becomes_present(self, browser):
def func():
browser.link(id='show_textfield').click()
browser.textfield(id='textfield').set('Foo')
browser.text_field(id='textfield').set('Foo')

result, duration = executed_within(func, min=1)
assert result, f'Element was not acted upon between 1 and 2 seconds! ({duration})'
Expand Down Expand Up @@ -296,7 +296,7 @@ def func():
def test_raises_exception_on_parent_never_present(self, browser):
element = browser.link(id='not_there')
with pytest.raises(UnknownObjectException):
element.element.click()
element.element().click()

@pytest.mark.usefixtures('default_timeout_handling')
def test_raises_exception_on_element_from_collection_parent_never_present(self, browser):
Expand Down

0 comments on commit 4559fe2

Please sign in to comment.