码迷,mamicode.com
首页 > 其他好文 > 详细

常用操作

时间:2019-03-15 01:13:38      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:csdn   chrome   loaded   www.   ali   target   value   home   参考   

操作Cookie
// Go to the correct domain
driver.get("http://www.example.com");

// Now set the cookie. This one‘s valid for the entire domain
Cookie cookie = new Cookie("key", "value");
driver.manage().addCookie(cookie);

// And now output all the available cookies for the current URL
Set<Cookie> allCookies = driver.manage().getCookies();
for (Cookie loadedCookie : allCookies) {
    System.out.println(String.format("%s -> %s", loadedCookie.getName(), loadedCookie.getValue()));
}
谷歌浏览器启动配置
https://blog.csdn.net/bpz31456/article/details/80455708
启动参数
https://peter.sh/experiments/chromium-command-line-switches/
参考
https://sites.google.com/a/chromium.org/chromedriver/home
查看谷歌NetWork数据
https://blog.csdn.net/zhuyiquan/article/details/80148767

 

 

常用操作

标签:csdn   chrome   loaded   www.   ali   target   value   home   参考   

原文地址:https://www.cnblogs.com/wldan/p/10534414.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!