無法識別頁面中的元素。它給出null。我想識別iframe中的元素(文本框)。我使用selenium webdriver單擊元素,但它是不能夠識別元件元素頁面上可見,但顯示爲空
1)我的HTML代碼如以下所示的
<html>
<head>
<body>
<iframe id="iframeOne">
</iframe>
</body>
</head>
</html>
2.我用JavaScript來標識相似的document.getElementById(「文本」)的文本框。
但它返回null。
3.I即使使用硒webdriver的嘗試
IWebElement ClickElement = Wait.Until((d) => webDriver.FindElement(By.Id(parameter1))); It gives object reference error
ClickElement.Click();
你的標記是_invalid_。 – undefined
標記是什麼意思? – Pat
您的_HTML Code_。 – undefined