0
我在OpenQA.Selenium上讀取NUnit測試,但停止轉換類型。我需要將轉換WebElement轉換爲輸入。我怎麼能做到這一點?如何做WebElement輸入?
這是我的代碼部分:
var input = serchElement.FindElement(By.CssSelector("input:focus"));
但在此輸入我不能添加文字。
感謝
我在OpenQA.Selenium上讀取NUnit測試,但停止轉換類型。我需要將轉換WebElement轉換爲輸入。我怎麼能做到這一點?如何做WebElement輸入?
這是我的代碼部分:
var input = serchElement.FindElement(By.CssSelector("input:focus"));
但在此輸入我不能添加文字。
感謝
我沮喪的,它開始工作
var input = (Input)focusInput.FindElement(By.CssSelector("input:focus"));
輸入類型應該是Webelement沒有變種。你能否詳細說明一下? –