Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何从 Selenium 获取元素的属性
我正在 Python 中使用 Selenium 我想得到 val of a
python
selenium
seleniumwebdriver
webdriver
getattribute
无法从 WebDriver 获取正确的控制台日志(Chrome、C#)
我在 Selenium WebDriver C Chrome 浏览器中编写了以下微测试 它没有用 但这里不是这种情况 Test public void T2 API 001 PrintingAlerts pgactions OpenData
c
selenium
seleniumwebdriver
seleniumchromedriver
使用 Selenium 自动化结帐流程时出现 403
我正在尝试使用 python 和 selenium 创建一个脚本来自动执行 bestbuy ca 的结帐过程 我一直到达最后阶段 您可以单击以查看最终订单 但当我尝试单击到最后一步时 收到以下 403 禁止消息 如网络响应中所示 是否有服务
javascript
python
html
selenium
seleniumchromedriver
Selenium RC:如何检查元素是否具有给定属性?
我有一些带有onclick属性和一些没有属性 我想检查指定的元素是否具有onclick属性 我怎样才能做到这一点 getAttribute 当有属性值时返回该属性值 如果没有 它会抛出 RuntimeException 并停止测试 即使我将
php
selenium
attributes
Phpunit
seleniumrc
Python 和 Selenium - 未知错误:元素在点 (663, 469) 处不可点击。其他元素将收到点击:
我有这个 Selenium 代码 应该单击尺寸选择按钮 submit button driver find element by class name pro sku elementList submit button find eleme
python
selenium
无法从超时获得自动化扩展:从渲染器接收消息超时
使用 Selenium Webdriver C 我时不时会收到下一个错误 System InvalidOperationException 未知错误 无法从超时获取自动化扩展 从渲染器接收消息超时 3 959 会话信息 chrome 37
selenium
seleniumwebdriver
webdriver
seleniumchromedriver
在 selenium webdriver 中使用 phantomjs 代理
我正在尝试在 selenium webdriver 2 25 的 ruby 1 8 7 脚本中使用 PhantomJS 1 9 1 配置代理 我看到了一些使用 Firefox 的例子 我用这个浏览器成功地做到了 我使用了这段代码 profi
ruby
selenium
proxy
PhantomJS
Selenium 3.7 和 Firefox ESR 52.4.1 是否需要 geckodriver?
我的理解是 当使用Selenium WebDriver来自 NuGet 的 v3 7 我需要当前版本的 geckodriver 才能与 Firefox ESR v52 4 1 交互 但是 我已经成功运行测试并成功通过withoutgecko
c
selenium
firefox
seleniumwebdriver
geckodriver
是否有可能构建一个可以通过浏览器运行的网络自动化?
我创建了一个 Java 程序 它使用镀铬驱动程序 https chromedriver chromium org Selenium https www seleniumhq org and Java Excel API http jexce
Java
selenium
Docker
Automation
seleniumchromedriver
Selenium:从文本框中删除内容
通过硒 如何从文本框中删除内容 我必须使用 selenium 命令从文本框中删除最后 2 个字符 例如ABCD 到AB 尝试这个 selenium type text box object ABCD selenium typeKeys te
selenium
seleniumrc
让 Selenium 与 Bootstrap 模式淡入淡出配合的建议?
我正在努力以 BDD 的方式生活 我正在使用 Cucumber 带有 Selenium 并且碰巧在我的应用程序中使用 Twitter Bootstrap 模式 在运行 Cucumber 测试时 我得到了 Selenium WebDriver
rubyonrails3
selenium
twitterbootstrap
cucumber
将 SelectByText (部分)与 C# Selenium WebDriver 绑定一起使用似乎不起作用
我正在使用 C 中的 Selenium WebDriver 扩展通过部分文本值 实际前面有一个空格 从选择列表中选择一个值 我无法使用部分文本匹配来使其工作 我做错了什么还是这是一个错误 可重现的例子 using Microsoft Vis
c
NET
selenium
webdriver
seleniumwebdriver
为什么通过selenium切换到alert不稳定?
为什么通过selenium切换到alert不稳定 例如 1 运行代码 一切顺利 一切都很顺利 但如果这段代码在几分钟内运行 那么可能会出现错误 例如 没有可以单击的元素 等等 2 在一个站点上有一个警报窗口 alert driver swi
python
Googlechrome
selenium
firefox
seleniumwebdriver
为什么 selenium chromedriver 使用的资源比常规 chrome 少
我注意到 当通过 selenium chromedriver 使用新的用户数据目录启动 chrome 时 它 使用的资源 cpu 内存和磁盘 比正常启动时要少得多 我能够找到的原因之一是 selenium chromedriver 启动时带
performance
selenium
Googlechrome
seleniumchromedriver
使用 chrome canary 执行 selenium python 脚本时如何抑制控制台错误/警告/信息消息
我正在使用 Chrome Canary 运行 python 脚本 下面的完整脚本链接 进行硒测试 测试似乎运行良好 但是 控制台上显示了大量错误 警告 信息消息 有没有办法抑制这些消息 我努力了 chrome options add arg
python3x
Googlechrome
selenium
seleniumchromedriver
当implicitly_wait不起作用时使用find_element_by_link_text出现NoSuchElement异常?
python 和 Selenium 以及相关编程的新手 我正在尝试自动化硒以点击特定链接 在本例中 我希望它点击与链接文本 B 关联的链接 li a href B a 在这个网站上 http www lw com http www lw c
python
selenium
seleniumwebdriver
在 Play 框架规范中设置 PhantomJSDriver 上的 Accept-Language
如何使用 Play Framework 2 2 规范中的特定 Accept Language 语言标头配置 PhantomJSDriver 鉴于此代码 import org specs2 mutable import org specs2
scala
selenium
playframework
PhantomJS
playframework22
bet365 网站上 Selenium 的 Chrome 驱动程序陷入灰屏
当我尝试使用 Chrome 驱动程序和 Selenium 打开 bet365 网站时出现灰屏 var driver new ChromeDriver driver Navigate GoToUrl https www bet365 it 我
c
selenium
Googlechrome
seleniumchromedriver
bots
在 docker 中使用 selenium 运行 django 测试
为了执行测试 我通常运行一个单独的容器 docker compose run rm web bin bash 其中web是django的容器 我不时从 shell 执行 py test 为了能够使用 django 从容器访问 seleniu
python
django
selenium
StaleElementReferenceException:使用 Selenium Python 从多个下拉列表中选择选项时,元素未附加到页面文档
代码试用 coding utf 8 from selenium import webdriver from selenium webdriver common keys import Keys from selenium webdriver
python
selenium
dropdown
WebDriverWait
staleelementreferenceexception
«
1
2
3
4
5
6
...100
»