Skip to content

Commit 94f7193

Browse files
committed
make Browser.wait_for() a more complete passthrough
1 parent ef64b6a commit 94f7193

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ngSe/browser.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def quit(self):
6666
else:
6767
raise
6868

69-
def wait_for(self, value, by=By.ID):
69+
def wait_for(self, value, by=By.ID, **kwargs):
7070
"""Waits for an element according to the passed ByClause
7171
7272
This is really just a wrapper around passing the browser to a ByClause, allowing for much cleaner syntax.
@@ -75,7 +75,8 @@ def wait_for(self, value, by=By.ID):
7575
must_be(value, "value", basestring)
7676
must_be(by, "by", ByClause)
7777
#
78-
by.wait(value, self)
78+
79+
by.wait(value, self, **kwargs)
7980

8081
def goto(self, url):
8182
"""Wrapper to check for navigation issues, like 404's

0 commit comments

Comments
 (0)