未使用selenium web驱动程序在客户端打开浏览器

未使用selenium web驱动程序在客户端打开浏览器,selenium,selenium-webdriver,web-scraping,selenium-chromedriver,Selenium,Selenium Webdriver,Web Scraping,Selenium Chromedriver,我想使用selenium webdriver在客户端打开Chrome。我有一段代码,它可以在单个系统中正常工作,但我无法在另一个系统中访问它 我使用的是selenium-server-standalone-2.44.0.jar,chromedriver 这是我用来打开浏览器的代码: System.setProperty("webdriver.chrome.driver", file.getAbsolutePath()); driver=new ChromeDriver(); 另一个系统上的Ch

我想使用
selenium webdriver
在客户端打开
Chrome
。我有一段代码,它可以在单个系统中正常工作,但我无法在另一个系统中访问它

我使用的是
selenium-server-standalone-2.44.0.jar
chromedriver

这是我用来打开浏览器的代码:

System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());
driver=new ChromeDriver();

另一个系统上的ChromeDriver是否与单个系统上的ChromeDriver位于同一位置

请尝试以下内容(在java中):


Selenium webdriver可以在不同的语言中使用。 我可以给你举个例子


在后端使用python开发web应用程序,前端使用html和javascript等解释性编程语言构建。如果我们将SeleniumWebDriver与python一起使用,那么浏览器将在服务器端打开。如果我们在javascript中使用selenium,那么浏览器将在客户端打开。

否。现在我有chromedriver.exe,它被放在apache tomcat的服务器bin文件夹中。当从客户端使用我的应用程序访问时,该驱动程序将被执行,浏览器将在服务器中打开。包含验证码的网站,所以它必须在客户端打开。有什么选择吗?谢谢你的帮助。。。
String currentDir = System.getProperty("user.dir");
String chromeDriverLocation = currentDir + "/../tools/chromedriver/chromedriver.exe";
System.setProperty("webdriver.chrome.driver", chromeDriverLocation);

ChromeOptions options = new ChromeOptions();
    options.addArguments("test-type");
    options.addArguments("disable-plugins");
    options.addArguments("disable-extensions");

    WebDriver chrome = new ChromeDriver(options);

    chrome.get("http://www.google.com");