protractor icon indicating copy to clipboard operation
protractor copied to clipboard

browser.driver.findElement(by.id()) throwing NoSuchElementError

Open sakshisingla opened this issue 12 years ago • 2 comments

Hi,

I have a non-angular webpage which has a sub-part containing a list of buttons:

There should be no error with clicking on a list element by id. You should use browser.pause to debug your application and make sure the html is present as you expect.

juliemr avatar Sep 04 '14 19:09 juliemr

Hi,

My application consisted of iframes. So, before clicking on an element, it needs to switch to that particular frame. browser.driver.switchTo().frame("IFRAMEID");

Hence, closing the issue.

Thanks, Sakshi

sakshisingla avatar Sep 05 '14 03:09 sakshisingla