Reputation: 3
enter image description hereWebdriver is Unable to locate an element
webdriver is failing to locate this element id="frameworkContainer" on my web page (attached is the image of html). I have used xpath, cssslocator, classname and ID. I'm using webdriver on VS2013 with C#.. can someone shed some light on this.
Upvotes: 0
Views: 82
Reputation: 3229
You have to switch to the iFrame before you're able to find any elements inside it. As there is an ID, the best way will be to find the element by it.
driver.switchTo().frame(iFrameLocator);
Upvotes: 1