RobotFrameWork--selenium2模拟chrome的user agent
2024-10-18 04:56:54
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
${options.add_argument}= Set Variable user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 System/ComputerId"
Create WebDriver Chrome chrome_options=${options}
Go To http://www.useragentstring.com
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${options} add_argument --user-agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 System/ComputerId
Create WebDriver Chrome chrome_options=${options}
Go To http://www.useragentstring.com
最新文章
- ABAP单元测试最佳实践
- November 1st 2016 Week 45th Tuesday
- 打开office word excel弹出visual studio 2008
- fedora配置网络
- <;<;人性的弱点>;>;读书笔记
- JVM是如何分配和回收内存?有实例!
- wx.html2.WebView在 target=";_blank"; or rel=";external"; 没有反映的解决方法
- struts不同session范围添加、访问属性
- 浅思OC的语言特性
- art template前端模板引擎
- jquery mobile 复选框和单选框
- _00023 Kafka 奇怪的操作_001它们的定义Encoder达到Class数据传输水平和决心
- linux内核笔记-内核同步
- JVM内存划分
- 使用百度ueditor的插件使得代码高亮显示
- 泊爷带你学go -- redis连接池的操作
- Windows Server 2012 NTP时间同步
- CTex+WinEdt10.2安装详细教程与破解
- 总结几种清除浏览器的缓存,适用于明明已经修改bug,但是测试人员说问题还存在的情况下
- c语言struct和c++struct的区别