Selenium在添加cookie时“Can only set Cookies for the current domain”错误处理
2017-10-05 22:41
555 查看
在用selenium添加cookie时遇到了“Can only set Cookies for the current domain”错误,经过一番搜索验证。
问题原因大概如下:某些网页里面用了一些selenium不支持的cookie键。
问题解决:通过
问题原因大概如下:某些网页里面用了一些selenium不支持的cookie键。
问题解决:通过
try/except忽略这种错误继续执行就OK了,不影响正常功能。
相关文章推荐
- pyhton selenium phantomJS cookie Can only set cookies for current domain” or "Unable to set Cookie"
- gridview导出exe处理时遇到RegisterForEventValidation can only be called during Render();错误
- 错误处理--pure specifier can only be specified for functions
- 关于ORA-01461: can bind a LONG value only for insert into a LONG column错误处理
- Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug
- gridview导出exe处理时遇到RegisterForEventValidation can only be called during Render();错误
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- mysql5中大数据错误:Packet for query is too large (1117260 > 1048576). You can change this value on the ser
- Illegal modifier for the variable str; only final is permitted的错误的深入理解
- VB6:关于“Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types.”的编译错误
- An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON
- 处理编译错误"0" is an invalid value for the "DebugInformation" parameter of the "DCC" task.
- apache错误:server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName'
- [JDBC]Invalid operation for the current cursor position错误的解决办法
- 在工作线程中处理UI线程报错:Only the original thread that created a view hierarchy can touch its views.
- 错误:Only the original thread that created a view hierarchy can touch its views——Handler的使用
- 关于出现数据库错误ORA-01461: can bind a LONG value only for insert into a LONG column
- android studio3.0 编译 Cannot set the value of read-only property 'outputFile' for apkVariantOutputImp
- 关于jstl taglib的错误 Can not find the tag library descriptor for “http://java.sun.com/jstl/core”
- [Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.