I'm writing e2e tests for my non-angular app, using protractor Version 3.3.0. My app loads another non-Angular App inside an iframe, and i'm trying to write tests to the iframed-in with Protractor.
I tried the above, using browser.driver.ignoreSynchronization = true:
1.
var EC = protractor.ExpectedConditions;
var button = $("div[automation-id='homescreen']")
var isClickable = EC.elementToBeClickable(button);
browser.wait(isClickable, 50000).then(function(){
browser.driver.sleep(500);
button.click();
})
Received the error "Failed: unknown error: Element is not clickable at point (326, 624)..."
2.
var loc = by.id('myFrame');
el = browser.driver.findElement(loc)
browser.driver.switchTo().frame(el);
Received the error "Failed: no such element: Unable to locate element: {"method":"css selector","selector":"*[id="myFrame"]"}"
even thought el was retrieved successfully..
3.
browser.driver.switchTo().frame(0);
tried with index 1 and received "Failed: no such frame.." error
4.
browser.driver.getAllWindowHandles()
Received only one window...