现在的位置: 首页 > 综合 > 正文

Selenium – How to find the element in iframe

2014年05月18日 ⁄ 综合 ⁄ 共 158字 ⁄ 字号 评论关闭

The following C# code may help you.

IWebElement frame = this.webDriver.FindElement(By.Id("xxx"));
return this.webDriver.SwitchTo().Frame(frame).FindElement(By.Id("xxx"));

抱歉!评论已关闭.