草庐IT

selenium-rc

全部标签

python - Selenium firefox 仅在通过 Windows 任务计划程序运行时无法加载

我有一个Python网页抓取脚本,使用Selenium和(tor)Firefox。当我在我的IDE中或从cmd手动启动脚本时,它运行得很好。但是,当我不在办公室时需要运行此脚本,因此我通过由Windows任务调度程序启动的批处理脚本(以及其他一些抓取脚本)来运行它。同样,当我手动运行这个批处理文件时,脚本运行完美。另一方面,当计划任务运行时,一旦设置了webdriver并显示以下无用的错误消息,它就会失败:Traceback(mostrecentcalllast):...#privatelibrarytraceback...File"redacted.py",line322,inred

node.js - 使用 Firefox 从 Nightwatch.js 自动运行 Selenium 时出错

我想在运行nightwatch.js测试用例时自动启动Selenium服务器。我将nightwatch.json上的selenium设置更改为:"selenium":{"start_process":true,"server_path":"./selenium/selenium391.jar","log_path":"C:/Projects/reports","host":"127.0.0.1","port":4444,"cli_args":{"webdriver.chrome.driver":"./selenium/chromedriver.exe","webdriver.ie.dr

windows - 错误 RC2247 : Symbol name too long (winnt. h)

尝试在Win32应用程序中显示对话框时出现RC2247错误(符号名称太长)。此文件中发生错误:C:\ProgramFiles(x86)\WindowsKits\10\Include\10.0.17134.0\um\winnt.h这在VS2015下运行良好。当我升级到VS2017时出现错误。我看过以下帖子,它们似乎不相关,因为它们属于prsht.h:RC2247:CannotopenRcfile:Resourceexplorercannotloadresource;Loadfailedhttp://social.msdn.microsoft.com/Forums/en-US/vcprer

windows - 在哪里可以下载 Visual Studio 2012 RC 和 Windows 8 Customer Preview?

关闭。这个问题是off-topic.它目前不接受答案。想改进这个问题吗?Updatethequestion所以它是on-topic用于堆栈溢出。关闭10年前。Improvethisquestion我听说VS2012beta和Windows8CustomerPreview将于今天(29II2012)可供下载,但我找不到它们的任何链接。有人知道我在哪里可以找到它们吗?

带有Chrome的Python Selenium,如何下载到具有指定文件名的指定文件夹

该网站有一个下载按钮,我可以用python做button.click()以网站指定的文件名将文件下载到Chrome下载文件夹。有没有办法在Windows上更改目标文件夹和文件名? 最佳答案 尝试:download_dir="/yourDownloadPath/"chrome_options=webdriver.ChromeOptions()preferences={"download.default_directory":download_dir,"directory_upgrade":True,"safebrowsing.enab

windows - 让 selenium、ghostdriver、phantomJS 在 Windows 7 上工作

我正在使用selenium-2.34和phantomJS-1.9.1-windows但是当我尝试使用时:importorg.openqa.selenium.phantomjs.PhantomJSDriver;importorg.openqa.selenium.phantomjs.PhantomJSDriverService;我可以看到它没有检测到org.openqa.selenium.phantomjs遇到这个错误Theimportorg.openqa.selenium.phantomjscannotberesolved我的印象是GhostDriver嵌入了PhantomJS-http

Python:使用Selenium和requests爬取文章

01需求描述在微信公众号上面,其实有很多很不错的文章,但是微信官方给我提供的方式只有几种:点赞、收藏、在看。或者有时候,有人通过转发到自己的朋友圈的方式,做文章的留存。因此,爬取与存储微信公众号的文章的需求便产生了。02用Python实现的爬取工作通过Python的【Selenium】与【】,我实现了一个简易的爬虫;并且通过ruamel.yaml,将不同的爬取需求需要更改的设置统一到了一个配置文件中,便于工具化的使用。该脚本工具对应的代码在这里,需要的朋友可以自行下载:https://download.csdn.net/download/huangbangqing12/8740092503脚本

java - Selenium : Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code

我通过本地机器连接到VPN并尝试在chrome浏览器上执行selenium脚本然后我收到以下错误:Onlylocalconnectionsareallowed.PleaseprotectportsusedbyChromeDriverandrelatedtestframeworkstopreventaccessbymaliciouscode.[1553947986.711][WARNING]:TimedoutconnectingtoChrome,retrying...[1553947990.713][WARNING]:TimedoutconnectingtoChrome,retrying

windows - 寻找用于 Web 测试的 Windows GUI 测试工具,如 Selenium

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于StackOverflow来说是偏离主题的,因为它们往往会吸引自以为是的答案和垃圾邮件。相反,describetheproblem以及迄今为止为解决该问题所做的工作。关闭8年前。Improvethisquestion我们使用并喜欢Selenium测试我们的网络用户界面。现在我们需要测试一个原生的Windows程序,正在寻找一个类似的工具。可以将session记录到可重播以执行测试的可编辑脚本的东西。我看到过对Spy++和UIAutomationVe

python - Selenium 导致Windows错误

我是selenium的新手,我正在使用它的python包。因此,当我复制并运行在其文档页面上找到的代码时:http://selenium.googlecode.com/svn/trunk/docs/api/py/index.html,我收到以下错误:fromseleniumimportwebdriverfromselenium.common.exceptionsimportNoSuchElementExceptionfromselenium.webdriver.common.keysimportKeysbrowser=webdriver.Firefox()Traceback(mostr