FAQ
I'm having the exact same issue. It occurs when visiting multiple URL's in
the same browser session (same window, and just visiting url after url).
When restarting the browser the issue is resolved, when running one URL per
test case the issue is resolved. The error seems to pop up fairly random.
Does anyone have a clue where this is coming from?

Cheers.
On Thursday, 9 February 2012 03:43:32 UTC+11, Navaneethan R wrote:

I am using selenium2 + python + amazon ec2 (Ubuntu 11.04) for my project.

For Headless reason in amazon ec2, I am using PyVirtualDisplay<http://%09http//coreygoldberg.blogspot.com/2011_06_01_archive.html> Since
there is no display in server.

when i am running my project, I am getting the exception
Traceback (most recent call last):
File "spyfu_ad_crawler_server.py", line 68, in <module>
main(i[0])
File "spyfu_ad_crawler_server.py", line 34, in main
WebDriverWait(browser, 10).until(lambda driver : driver.find_element_by_xpath("/html/body/form/div[3]/div[3]/div/div/table/tbody/tr[3]/td/tab le/tbody/tr[2]/td/table/tbody"))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 49, in until
value = method(self._driver)
File "spyfu_ad_crawler_server.py", line 34, in <lambda>
WebDriverWait(browser, 10).until(lambda driver : driver.find_element_by_xpath("/html/body/form/div[3]/div[3]/div/div/table/tbody/tr[3]/td/table/tbody/tr[2]/td/table/tbody"))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 210, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 645, in find_element
{'using': by, 'value': value})['value']
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 153, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 147, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: u'Modal dialog present'
how it will be solved?
how to handle the unwanted dialog boxes in headless selenium?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/bmAbFS4H1ncJ.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedMay 28, '12 at 6:17a
activeMay 28, '12 at 6:17a
posts1
users1
websiteseleniumhq.org

1 user in discussion

Giacomo: 1 post

People

Translate

site design / logo © 2022 Grokbase