0
Failed: element not Visible
I am trying to access a menu item, but it is returning as not visible. I tried it in two ways:
var formalizationLink = element(by.id('menu7'));
browser.executeScript("arguments[0].scrollIntoView();", formalizationLink.getWebElement());
formalizationLink.click();
And also:
let formalizationLink = element(by.id("menu7"));
if (formalizationLink.isPresent()) {
formalizationLink.click();
browser.sleep(500);
} else {
return false;
}
The menu items above this are working normally, someone could help me?