`

Error forwarding the new session cannot find : Capabilities [{browserName=htmlun

阅读更多

代码:

driver = webdriver.Remote(
                                          command_executor=' http://127.0.0.1:4444/wd/hub',
                                          desired_capabilities={'platform': 'ANY',
                                          'browserName': 'htmlunit',
                                          'version': '',
                                          'javascriptEnabled': True
                                         })

运行的时候报:selenium.common.exceptions.WebDriverException: Message:

Error forwarding the new session cannot find : Capabilities [{browserName=htmlunit, javascriptEnabled=true, version=, platform=ANY}]

当时有点迷惑,我把 'browserName': ''的value换成chrome.firefox,IE都没有问题,就这个htmlunit报错,查资料发现这个在启动selenium-server node的时候要指定一下

java -jar selenium-server-standalone-2.44.0.jar -role node -hub http://IP:4444/grid/register  -browser  browserName=htmlunit   
 

 

分享到:
评论

相关推荐

    cpu的简单设计

    /******* the whole module CPU is made of Instuction_Mem module, PCPU module and Data_Mem module ********/ module CPU( input wire clk, clock, enable, reset, start, input wire[3:0] select_y, output ...

    Java邮件开发Fundamentals of the JavaMail API

    Fundamentals of the JavaMail API Presented by developerWorks, your source for great tutorials ibm.com/developerWorks Table of Contents If you're viewing this document online, you can click ...

    wsl2-forwarding-port-cli:WSL2-forwarding-port-cli是用于WSL2 TCP和UDP转发端口配置的命令行工具

    wsl2-forwarding-port-cli 作者:Chatdanai Phakaket 电子邮件: WSL2-forwarding-port-cli是用于wsl2转发端口配置的命令行工具 要求 [推荐] wsl2-forwarding-port-engine版本1.0.1-beta wsl2-forwarding-port-...

    remote-forwarder:使用 SSH 客户端将本地端口转发到节点中的远程服务器

    远程转发器 使用 SSH 将本地端口转发到远程服务器。 它包装了ssh -R以便 in 可以在节点域中使用。 安装 ... , user : user // the user in the target system , port : port // the local port to

    Java_for_the_Web_with_Servlets

    - **How a Servlet Works**: When a request is sent to a servlet, the servlet container creates a new instance of the servlet if one does not already exist. The `init()` method initializes the servlet, ...

    MATLAB_Session.pdf

    在《MATLAB_Session.pdf》文档中,主要介绍了MATLAB的基础知识及其在机器学习课程中的应用。下面将详细介绍文档中提到的一些关键知识点。 #### MATLAB在课程中的角色 文档开头提到了MATLAB对于该课程的重要性:...

    Cisco Express Forwarding Overview

    ### Cisco Express Forwarding (CEF)概述:网络性能与可扩展性的关键 Cisco Express Forwarding(CEF)是一种先进的第三层IP交换技术,旨在优化大规模且动态流量模式网络的性能和可扩展性,例如互联网、以Web为基础...

    计算机网络第六版答案

    23. The five layers in the Internet protocol stack are – from top to bottom – the application layer, the transport layer, the network layer, the link layer, and the physical layer. The principal ...

    Android Usb Port Forwarding

    The Android architecture does not allow to start communication from the Android to the host through the USB cable.The opposite is possible, using the Google "Android Debug Bridge" (ADB in short)....

    Cisco Express Forwarding 2007

    ### Cisco Express Forwarding 2007:深入理解路由器工作原理 #### 一、引言:包交换架构简介 在本书的第一章中,作者详细介绍了包交换架构的基础知识,为读者构建了一个关于路由器如何工作的全面视野。这一章节...

    Cisco Press: Cisco Express Forwarding(May.2007).chm

    《Cisco Express Forwarding(May.2007).chm》是Cisco Press出版的一本专业电子书,专注于探讨Cisco Express Forwarding(CEF)这一核心技术。这本书面向IT专业人士,特别是网络工程师和管理员,提供了深入理解CEF...

    Port Forwarding Wizard Enterprise v4.0.0.1

    Powerful windows port forwarding software provide smart route strategy for dynamic port forwarding.... Let your Infinitely windows port forwarding and enjoy fun of file share at the same time!

    Administering Windows Vista Security: The Big Surprises

    Meet the new Windows Integrity mechanism * Explore the revamped Event Viewer, event forwarding, and new troubleshooting tools <br>Go above and beyond what you've heard about Vista <br>...

    debian-rawdns:https

    " : {" type " : " forwarding " ," nameservers " : [ " 192.168.1.1 " ]}," . " : {" type " : " forwarding " ," nameservers " : [ " 8.8.8.8 " , " 8.8.4.4 " ]}} 然后: $ docker run --rm -p 53:53/udp -v /...

    HAproxy 1.4.20 发布

    - BUILD: fix build error on FreeBSD - BUG: queue: fix dequeueing sequence on HTTP keep-alive sessions - BUG: http: disable TCP delayed ACKs when forwarding content-length data - BUG: checks: fix ...

    MobaXterm 10.8最新professional版专业版

    Bugfix: fixed the error message which occured when running the graphical package manager "MobApt" 破解Securecrt怕中毒,Xshell 用着不爽,Putty太单薄,手头没Mac用不了iterm2。那就试试这个全能开源的终端...

    ldap服务器用户及权限管理控制linux操作系统-电脑资料.doc

    Allow users to change their own passwords and mail forwarding addresses. access to attrs="userPassword,mailForwardingAddress" by anonymous auth by self write by dn.exact="cn=bbs,dc=361way,dc=" read ...

    C++ Templates The Complete Guide, 2nd Edition

    The authors provide authoritative explanations of all new language features that either improve templates or interact with them, including variadic templates, generic lambdas, class template argument ...

Global site tag (gtag.js) - Google Analytics