Closed NetanelBasal closed 9 years ago
It's the click that fails. Something must be covering the open modal button. Do so that you insert the debugger task (make sure to only run one browser) browser.pause()
before the click, then you can pause and inspect the page and proceed one task at the time.
But nothing is covering the button, it is simple button in regular navigation.
I found in firefox this works well, the problem only on chrome.
Is the browser screen too narrow?
No, i set this: browser.manage().window().setSize(1600, 1000);
Do you know what the <div id="__bs_notify__" style="display: block; padding: 15px; font-family: sans-serif; position: fixed; font-size: 0.9em; z-index: 9999; right: 0px; top: 0px; border-bottom-left-radius: 5px; margin: 0px; color: white; text-align: center; background-color: rgb(27, 32, 50);">...</div>
element is?
No, from where you got this code?
Please direct general support questions like this one to an appropriate support channel, see https://github.com/angular/protractor/blob/master/CONTRIBUTING.md#questions
Thank you!
The __bs_notify__ div is something from BrowserSync. I guess BrowserSync has some "invisible" extra div's, maybe for the Ghost Mode. Even when setting the ghostmode flag to false the error still appears. I'll investigate further.
FYI @sjelin @NetanelBasal
The problem appeared due to the BrowserSync notify covering the button, that opens my modal.
To solve this I had to set the notify
-attribute to false.
My config looks like this:
browserSync.instance = browserSync.init({
startPath: '/',
notify: false, //LL BS 15.08 disable browser sync notification. The notify covers some UI elements and protractor tests may fail
server: server,
browser: browser
});
I am trying to make simple test, i want to click on a button that opens signup ui bootstrap modal and check if isPresent, i does not why i am not success to make this simple task with protractor.
my signup page object:
My test:
The error is: