phptravels location text field 附上了带有HTML代码的图像。 我无法写一个xpath来识别和发送密钥。 文本字段在焦点和不在时有不同的xpath。 它抛出我NoSuchElementFound异常。 driver.get("http://www.phptravels.net");
WebElement e = driver.findElement(By.xpath
问,因为我遵循Guru99的时间敏感的硒课程和作为我的项目的一部分下载的代码不会作为Java应用程序运行。 它应该仅与该代码跑: import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
public class TestScript01 {
public static void main