我习惯于在Windows7中使用selenium在vba上运行脚本,没有任何问题,而且由于我安装了Windows10a,所以无法打开Google Chrome自动窗口。 已经安装了google chromedriver和selenium库 将C:....\AppData\Local\SeleniumBasic放在环境路径上 Google Chrome的版本是78.0.3904.108,chromedriver是78.0.3904.105,人们对此似乎没有问题…… 这是代码的开始,崩溃的地方... Dim bot As New Selenium.ChromeDriver, posts A
我尝试使用selenium web驱动程序来实现这个计划“我通过selenium web驱动程序在名为scene-rls的示例网站上打开了新的链接,并在这个网站上做了一些工作,在我打开新选项卡打开google.com之后,做了一些工作,关闭了google选项卡,返回到scene-rls选项卡,在scene-rls选项卡上做了新的工作,但在我的代码中,当我打开google.com并关闭选项卡并返回到scene-rls选项卡时,代码返回的错误如下: selenium.common.exceptions.NoSuchWindowException: Message: no such window:
我之前做过,但是我现在不能通过selenium使用chrome。浏览器打开几秒钟,然后关闭,然后我收到一个错误(大约5分钟后):
Message: session not created
from disconnected: unable to connect to renderer
(Session info: chrome=70.0.3538.67)
(Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.18.14-arch1-1-ARCH x8
我正在尝试使用Selenium web驱动程序。我正在使用asp.net mvc。我已经建立了一个非常基本的测试。我基本上只是想打开浏览器。
Imports NUnit.Framework
Imports OpenQA.Selenium
Imports OpenQA.Selenium.Chrome
Imports OpenQA.Selenium.Firefox
<TestFixture()>
Public Class SeleniumEg
Dim driverFF As IWebDriver
Dim driverGC As IWebDriver
我在Windows10上使用Selenium和Python 3.7.3。
如果我将代码包装在一个类中,浏览器在打开页面后立即终止:
'''
Program to show how to open chrome browser using selenium webdriver
'''
from selenium import webdriver
#import os
class run_chrome_tests(object):
def test_method(self):
# This is the locatio
我正在运行一个角度应用程序的E2E测试。为了使用protractor.conf.js,我确实编辑了SeleniumStandalone。它看起来很好,我可以使用:ng e2e运行测试。
protractor.conf.js
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
// location of the Selenium JAR file and chromedriver, use these if you installed protractor loca
问题来了。我有一个我创建的链接列表,我想让selenium访问它们。我为此使用了一个for循环,但在第一个链接之后,它给出了这个错误:
ImportError: sys.meta_path is None, Python is likely shutting down
以下是我的代码
from selenium import webdriver
import time
links = ['https://www.youtube.com','https://www.google.com']
driver = webdriver.Chrome(R'C:\
当我运行一个简单的java selenium代码来启动faceboook应用程序时,我得到了错误消息"Timed out waiting for driver server to start“。 Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', tim
使用Selenium,我尝试在登录后打开fb页面。登录后,会有一个弹出框显示如下“显示通知”
Allow and Block" I want to select "_**Allow**_" button.
我收到一条错误消息
线程"main“org.openqa.selenium.NoAlertPresentException中的异常:没有打开警报
请帮帮忙。
下面是我写的代码:
System.setProperty("webdriver.chrome.driver","C:\\Users\\ABCD\\Desktop\\chr
我的操作系统在Windows 10中。我试图运行大约3年前运行良好的Selenium项目,但是我在意外的错误消息中运行
The specified executable is not a valid application for this OS platform.
到目前为止,我已经执行了以下步骤:以管理员身份重新运行VS2015,得到相同的错误,然后检查项目目录中是否存在chromedriver.exe。更新Selenium.WebDriver.ChromeDriver to 74.0.3729.6、Selenium.WebDriver to 3.141和Selenium.Support
我想点击一个网站上的“搜索”按钮。然后下一页打开。单击不会执行(即使是内置的time.sleeps(3)),但不会引发错误消息。
我做错了什么?
import time
import sys
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
driver
当我在chromedriver中加载默认配置文件时,我无法使用其他自动命令,它将显示以下错误消息:
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
这是我的密码:
from selenium import webdriver
我在Modulepath下导入了外部jar,遵循这个。但与指南中的相比,我缺少了一些。难道这就是我为什么还会犯这些错误的原因吗?如果是这样的话,我怎样才能得到这些,或者我可以在哪里单独下载并导入呢?
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class First {
public static void main(String[] args) {
/
因此,我遇到的问题是,当我尝试使用Chrome Web浏览器运行自动化测试时,我会得到以下错误消息:
System.InvalidOperationException
HResult=0x80131509
Message=session not created: This version of ChromeDriver only supports Chrome version 80
(Driver info: chromedriver=80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/