Selenium FF WebDriver?????????firebug??2????
???????????? ???????[ 2015/1/13 14:31:56 ] ????????Selenium webdriver ????????????
??????????????FF webdriver ????firefoxhttp://www.cnblogs.com/tobecrazy/p/3997375.html
????????????????????????firebug??????????????????firebug
????Ч?????£?
?????????????????????????solutions
????????1?????firebug?????F12????firebug
????????????????Actions class ??sendKeys method?????sendKeys?????????????perform???? ???? ??????е?
File file=new File("C:\webdriver\firebug-2.0.4-fx.xpi");//????Firebug·??
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("network.proxy.type"?? 2);
profile.setPreference("network.proxy.autoconfig_url"?? "http://proxy.successfactors.com:8083"); //???????????
try {
//add firebug
profile.addExtension(file);
profile.setPreference("extensions.firebug.currentVersion"?? "2.0.4");//????firebug ?汾
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
WebDriver driver = new FirefoxDriver(profile);
driver.get("http://www.dbyl.cn");
Actions actions=new Actions(driver);
//F12 is a short cut of active firebug
//do not forget perform
actions.sendKeys(Keys.F12).perform();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(60?? TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(30?? TimeUnit.SECONDS);
|
??????

???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44