初衷是想实现一个Remote实例,也是刚学selenum-grid,就迫不及待写个脚本运行看看效果;
显示报错:selenium.common.exceptions.WebDriverException: Message: Error forwarding the new session Empty pool of VM for setup Capabilities {browserName: firefox, javascriptEnabled: true, version: }
原因是启动Selenium Server的命令不对:
java -jar D://*//selenium-server-standalone-3.141.59.jar -role hub -port 4444
改为: java -jar D://*//selenium-server-standalone-3.141.59.jar
这里我只想看看Remote()方法,就没有配置hub和node节点;
原文地址:https://www.cnblogs.com/ch2018/p/10076053.html
时间: 2024-11-05 11:53:05