這裏不開放是錯誤:瀏覽器使用Selenium的webdriver
[11762:11762:0801/141204:ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/* getrlimit(RLIMIT_NOFILE) failed [11762:11886:0801/141205:ERROR:get_updates_processor.cc(243)] PostClientToServerMessage() failed during GetUpdates getrlimit(RLIMIT_NOFILE) failed
代碼:
public class FirstTestCase {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
WebDriver driver = new ChromeDriver();
String URL = "mail.google.com";;
[如何創建一個最小的,完整的,並且可驗證的示例](HTTP:/ /stackoverflow.com/help/mcve) – Josh
請分享你的代碼 – Siva
公共類FirstTestCase { \t公共靜態無效的主要(字串[] args)拋出InterruptedException的{ \t \t // TODO自動生成方法存根 \t \t \t \t System.setProperty( 「webdriver.chrome.driver」, 「在/ usr /斌/谷歌鉻」); \t \t WebDriver driver = new ChromeDriver(); \t \t String URL =「https://mail.google.com」; – muthubala