Created
December 29, 2011 17:56
-
-
Save kennethkoontz/1535279 to your computer and use it in GitHub Desktop.
This file contains 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
popup = wd.switch_to_alert() | |
print popup.text | |
This file contains 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
Traceback (most recent call last): | |
File "/home/kenneth/Projects/m8/scripts/selenium2/portal/test_project.py", line 202, in test_projectMenuLinks | |
print popup.text | |
File "/usr/local/lib/python2.6/dist-packages/selenium-2.14.0-py2.6.egg/selenium/webdriver/common/alert.py", line 27, in text | |
return self.driver.execute(Command.GET_ALERT_TEXT)["value"] | |
File "/usr/local/lib/python2.6/dist-packages/selenium-2.14.0-py2.6.egg/selenium/webdriver/remote/webdriver.py", line 153, in execute | |
self.error_handler.check_response(response) | |
File "/usr/local/lib/python2.6/dist-packages/selenium-2.14.0-py2.6.egg/selenium/webdriver/remote/errorhandler.py", line 147, in check_response | |
raise exception_class(message, screen, stacktrace) | |
selenium.common.exceptions.WebDriverException: Message: u'com.google.common.collect.Maps$TransformedEntriesMap cannot be cast to java.lang.String' ; Stacktrace: Method alert threw an error in RemoteWebDriver.java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment