51Testing软件测试论坛
标题:
selenium+java提示Error communicating with the remote browser. It may have die...
[打印本页]
作者:
SunnyLan
时间:
2016-12-19 17:14
标题:
selenium+java提示Error communicating with the remote browser. It may have die...
本帖最后由 SunnyLan 于 2016-12-19 17:16 编辑
浏览器提示“请停用以开发者模式运行的扩展程序”
package Common;
import java.util.Arrays;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.*;
//import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.WebDriver.Navigation;
public class testbaidu {
/**
* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new ChromeDriver();
Thread.sleep(3000);
driver.get("www.baidu.com");
Thread.sleep(3000);
driver.findElement(By.id("kw")).sendKeys(new String[]{"selenium"});//
Thread.sleep(3000);
driver.findElement(By.id("su")).click();
}
}
作者:
梦想家
时间:
2016-12-19 17:25
开发者模式的浏览器?
作者:
jingzizx
时间:
2016-12-31 14:04
应该跟程序无关,是浏览器自己的设置吧
作者:
jingzizx
时间:
2016-12-31 14:04
搜索下,有很多设置的方式
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2