[英]Selenium Chrome Driver Unable to locate element INPUT
錯誤:沒有這樣的元素:無法找到元素:{"method":"xpath","selector":"//div[@class='label-input']//input"}
我需要發送一個用戶名到這里https://prnt.sc/sf9t14 https://prnt.sc/sfaqre
請幫幫我:)
拳頭你必須切換框架:
driver.SwitchTo().Frame(driver.FindElement(By.Xpath("//iframe[@class='gameframe']")));
然后你可以輸入輸入
IWebElement userInput = driver.FindElement(By.Xpath("//div[@class='label-input']/input"));
userInput.SendKeys("username");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.