DKarap / web-driver

crawler that use the webdriver, ghostdriver/phantomJS
0 stars 1 forks source link

Check failed cases where get(url) or clickLink() functions open multiple windows, such as alerts, popups,etc; currently we dont handle these cases as we did in A4J_2 #1

Closed DKarap closed 10 years ago

DKarap commented 10 years ago

In actions that we load new pages or click elements we may have multiple windows to handle; we need to check if this is happening with the ghostdriver too. See code from Robot.java

DKarap commented 10 years ago

we should check of there are more than one window opened everytime we click an element; is tehre are then we need to go to the new window and not stay at the current one. The current one always is the old one.

The cases of get(url) or switchFrame(index) needs investigation if open new windows

DKarap commented 10 years ago

implement close all other windows function and this is handle in the module where driver is used...

DKarap commented 10 years ago

we should handle internaly in the webdriver cases where we have alert boxes..

DKarap commented 10 years ago

this solution doent handle Jquery dialog boxes; these ones can handfle as normal html elements... https://code.google.com/p/selenium/issues/detail?id=1528 http://www.warmteservice.nl/