protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Mouse over show hidden element but when click got element not visible error

Open chun2014 opened this issue 12 years ago • 2 comments

I'm using the action sequence to simulate mouse over, then a hidden element is displayed, when click on it it will open a alert box for now. I was able to click the hidden element after mouse over, a alert box pop up, but I also got unexpected alert open error in the console and the test stopped:

......\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:109 var template = new Error(this.message); ^ UnexpectedAlertOpenError: unexpected alert open

Any idea why I got such error?

(sorry the issue is different now, but I can't seem to be able to edit summary title)

chun2014 avatar Aug 06 '14 00:08 chun2014

If an alert is open and you try to perform another action, it will fail. See this test for an example of dealing with alerts.

juliemr avatar Aug 06 '14 21:08 juliemr

Thanks for providing the example. I will look more into why it gave me an error when the alert box is open, I wasn't perform other action, just performed a click on the element though.

chun2014 avatar Aug 07 '14 19:08 chun2014