Vat Van
Vat Van

Reputation: 3

Unable to locate element, using webdriver on VS 2013 & C#

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

Answers (1)

Kim Homann
Kim Homann

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

Related Questions