Last active
December 21, 2016 23:22
-
-
Save mpasternak/f2840edea51c211d609daa7f17be614f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def clickButtonBuggyMarionetteDriver(browser, id): | |
try: | |
browser.execute_script("$('#" + id + "').click()") | |
except WebDriverException, e: | |
if e.msg.startswith("Failed to find value field"): | |
pass | |
else: | |
raise e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment