摘要:
通过id进行定位 driver.findElement(By.id("kw")).sendKeys("博客园"); 通过name进行定位 driver.findElement(By.name("wd")).sendKeys("博客园 避雨亭"); 通过class进行定位 driver.findElement(By.className("s_ipt")).sendKeys("test");... 阅读全文
摘要:
编写脚本时,如何确定通过id查找的id是否真实存在,点击css,然后输入#(代表id)id名,如#kd,回车之后,能返回结果,便代表存在。 阅读全文
摘要:
启动firefox报错如下: rg.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console outp 阅读全文