我想在Chromebook上使用Chromedriver运行Selenium测试,但我无法让它工作。
设置
我安装了和。chromebrew提供了用于virtualenv和Python3.6的包,加上pip install Selenium,我获得了Selenium。从中我知道色度驱动器在/usr/local/chromedriver中。称之为:
chronos@localhost /usr/local/chromedriver $ chromedriver
Starting ChromeDriver 2.24 on port 9515
Only local connections are
我在docker文件.After中使用量角器(版本5.4.2)运行测试,google chrome升级到版本76,测试已经开始失败,给出这个错误:
SessionNotCreatedError: session not created: Chrome version must be
between 71 and 75
[chrome #01-2] (Driver info: chromedriver=2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926),
platform=Linux 4.15.0-1040-aws x86_64)
我是selenium的新手,正在尝试通过selenium在chrome浏览器中打开 (下面是代码)。但在运行此代码后,我无法看到chrome浏览器。谁能告诉我这段代码到底出了什么问题。
这是我的代码。
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Test {
public static void main(String[] args) {
System.setProperty("webdriver.chro
当我在Windows上运行SpecFlow测试时,一切都很好。
当我在Linux上运行(WSL和Docker --都是基于Ubuntu的)时,问题就开始了,运行的结果是以下StackTrace:
OpenQA.Selenium.WebDriverException : unknown error: Chrome failed to start: crashed.
(chrome not reachable)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so
我无法启动chromedriver会话,出现以下错误: [0-0] 2021-04-14T02:07:34.751Z DEBUG webdriver: request failed due to status 33
[0-0] 2021-04-14T02:07:34.751Z ERROR webdriver: Request failed with status 500 due to session not created: session not created: This version of ChromeDriver only supports Chrome version 90
Cu
这个错误让我抓狂。我的代码是:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import chromedriver_binary
from selenium.webdriver.common.by import By
import
我正试图在aws上托管一个webscraping功能,并遇到了selenium的webdriver。有谁能告诉我如何添加chromedriver.exe文件,以及如何在AWS函数中工作。这是我函数中与selenium有关的部分,
from selenium import webdriver from selenium.webdriver.common.by import By from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.support.ui import WebDriverWa
我用的是角CLI。我创建它的时候:
ng new MyFirstApp
然后,我尝试使用以下方法运行端到端的测试:
ng e2e
我收到以下错误消息:
E/launcher - session not created: This version of ChromeDriver only supports Chrome version 79
Driver info: chromedriver=79.0.3945.16
at Object.checkLegacyResponse (C:\TestProj\Angular\MyFirstApp\node_modules\selenium-webdr
我得到了:
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
我在我的项目中添加了所有的jars,但仍然无法解决这个问题。
package automationFramework;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class FirstTestCase {
public static void ma
当我试图通过chrome web驱动程序连接到debuggerAddress时,我得到以下错误:
WebDriverException: Message: unknown error: cannot connect to chrome at localhost:xxxx from session not created: Chrome version must be >= 69.0.3497.0 (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90),platform=Windo
我正在用Selenium做一个网络抓取的小项目。我不得不将driver = webdriver.Chrome(executable_path=chrome_driver_path)替换为driver = webdriver.Chrome(service=Service(ChromeDriverManager().install())),因为不推荐executable_path。下面是我的代码片段:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver
我正在尝试在Mac上使用Selenium,我有一些关于驱动程序的问题。下面是我的代码:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import pandas as pd
driver = webdriver.Chrome()
我已经下载了chromedriver并将文件放到了我的路径中。但是,当我尝试启动一个WebDriver实例时,我得到了以下错误:
WebDriverException: