ERROR: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@class='label-input']//input"}
I need to send a Username to here https://prnt.sc/sf9t14 https://prnt.sc/sfaqre
HELP ME PLEASE BROS:)
Fist you have to switch the frame:
driver.SwitchTo().Frame(driver.FindElement(By.Xpath("//iframe[@class='gameframe']")));
Then you can type the input
IWebElement userInput = driver.FindElement(By.Xpath("//div[@class='label-input']/input"));
userInput.SendKeys("username");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.