我的代码如下:
from selenium import webdriver
driver = webdriver.Chrome(executable_path="/webdriver/chromedriver.exe")
driver.get('http://google.com/')
当我运行程序时,浏览器打开半秒钟,然后关闭并给出错误Message: session not created: This version of ChromeDriver only supports Chrome version 85。
我正在为我的程序使用这个版本的色度驱动器
我想在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
我正在尝试将RSpec套件配置为在Chromium浏览器(而不是google-chrome)上运行...测试套件失败,并显示以下错误
1.2) Failure/Error: Unable to infer file and line number from backtrace
Selenium::WebDriver::Error::SessionNotCreatedError:
session not created: This version of ChromeDriver only supports Chrome version 80
我目前使用的是Chrome 75,我已经下载了用于linux的。我还将它添加到PATH变量中。但是,当我尝试用driver = webdriver.Chrome()初始化驱动程序时,会出现以下错误:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 76
我从这条信息中得到的信息是,我的Chromedriver是针对Chromedriver 76的,但我的Chr
我发现我的current chrome version is 96.0.4664.45
现在,当我从安装正确的ChromeDriver版本并运行时,它仍然抛出这个错误-
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 91
Current browser version is 96.0.4664.45 with binary path C:\Program F
我试着用詹金斯的官方形象来设置詹金斯。
Dockerfile
FROM jenkins/jenkins:lts
USER root
RUN apt-get update && apt install -y ruby-full
RUN apt-get install -y curl
RUN apt -y autoremove
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y build-essential
代码运行良好,直到它尝试访问该目录。如有任何意见,不胜感激。
以下是代码:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import os
import ast
import requests
import urllib.request
from bs4 import BeautifulSoup as Soup
opts = Options()
opts.add_argument("user-agent=chrome/23.0.1271")
dr
我在测试包中创建了一个maven项目,添加了一个testNg测试用例:
public class SampleTestNGTest {
private WebDriver driver;
@Test
public void testEasy() {
System.setProperty("webdriver.chrome.driver","D:\\NetBeansProjects\\webdrivertestng\\Drivers\\chr
我已经用java写了一个简单的代码,它将打开chrome浏览器并验证它的标题。在这里,我使用了Jbehave(BDD)概念来实现它。
我面临的问题是我不能运行我的配置文件。
这是我的.story文件
narrative:
In order to communicate effectively to the business some functionality
As a development team
I want to use Behaviour-Driven Development
Scenario: A Scenario to open google.com
Given I ope
随着Chrome第75版刚刚发布,我们的测试不再正常运行。他们把堆叠的痕迹贴在下面。我们在rspec,selenium-WebDriver3.8.0中使用ruby on rails v.5.1.6.2。
堆栈跟踪:
Selenium::WebDriver::Error::UnknownCommandError:
unknown command: Cannot call non W3C standard command while in W3C mode
# 0 chromedriver 0x00000
霍拉
因此,我一直试图在c#中创建一个带有selenium的web,并试图编写一个基本的Hello 。
问题是这东西连启动都没有,我什么都试过了。追踪:
Starting ChromeDriver 97.0.4692.36 (747e0a0f19c13ca6ee136200f5b097448ae4892f-refs/branch-heads/4692@{#607}) on port 61335
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerati
我过去常常使用directConnect: true选项集运行量角器测试。我当时使用的chromedriver是chromedriver2.46
现在,使用最新的webdriver-manaegr12.1.4,chromedriver升级到了ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29})
如果我仍然继续使用directConnect: true并运行我的测试,我会得到以下错误
session not created: This version of
我把我的Rails-App和Capybara放在一起了。测试工作正常,但我得到了以下错误:
2019年-05-03 14:51:58警告硒不推荐使用Selenium::WebDriver::Chrome#driver_path=。使用Selenium::WebDriver::Chrome::Service#driver_path=代替。
Gemfile
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2
我正在使用最新版本的chrome驱动程序和chrome运行一些selenium c#铬驱动程序测试。
在我的桌面Windows 10 PC上,它可以正常工作,但是在生产Windows服务器2016时,当selenium试图启动一个新进程时,我会收到这个错误。
[0703/113439.645:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights
尝试运行由其他开发人员编写的rspec测试。但是测试将失败,并显示以下错误
Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver 127.0.0.1:9515
0) /media/uploader product video wistia uploads adds video when links is valid
Failure/Error: visit login_path
Selenium::WebDriver::Error::WebDriverError: