geckodriver

Java Selenium Webdriver Connection Refused

穿精又带淫゛_ 提交于 2019-12-18 07:08:37
问题 I am getting the all too common connection refused error on my selenium webdriver. The same code was executing a few weeks ago. I have been reading in circles through existing posts and have tried updating geckodriver and FireFox to no avail. I can run the same code on another computer running the same versions of the driver, browser and libraries etc. How can I find the cause specific to this machine? the error is below. Debug 1 Debug 2 Debug 3 Exception in thread "main" org.openqa.selenium

NotADirectoryError: [Errno 20] Not a directory: '/home/ghost/automation/pwd/geckodriver' with GeckoDrriver Firefox and Selenium using Python3

非 Y 不嫁゛ 提交于 2019-12-17 23:44:08
问题 im using pycharm and my pythn version 3.6.7 pip 9.0.1 and selenium version selenium-3.141.0 urllib3-1.24.1 i install selenium using this commands pip3 install selenium then i code like this from selenium import webdriver driver = webdriver.Firefox("/home/ghost/automation/pwd/geckodriver") driver.set_page_load_timeout(30) driver.get("https://www.google.com/") driver.maximize_window() driver.implicitly_wait(120) driver.get_screenshot_as_file("google.png") driver.quit() **when i run this i get

Selenium: Not able to take complete page screenshot using aShot library

给你一囗甜甜゛ 提交于 2019-12-17 21:17:40
问题 Am trying to take the complete page screenshot both horizontally and vertically using Firefox gecko driver and aShot Library. However, the results are not as expected. Take a look: driver.get("https://google.com"); Screenshot fpScreenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000)).takeScreenshot(driver); ImageIO.write(fpScreenshot.getImage(),"JPEG",new File("FullPageScreenshot.jpg")); Looked into a lot of variants but nothing is working. Interestingly, when I try

org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: (x, y) is out of bounds while MouseHover with GeckoDriver Firefox Selenium

泄露秘密 提交于 2019-12-17 20:25:24
问题 I am learning how to automate tests with Selenium WebDriver, however I got stuck and cannot make dropdown menu to work in Firefox. The same code runs perfectly fine in Chrome. The site I am practicing on is: http://www.executeautomation.com/demosite/index.html and I want to click the following item from menu: Automation Tools > Selenium > Selenium WebDriver. The error message suggest that the web element may not be loaded on the screen yet, so I have implemented some method to wait with every

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

偶尔善良 提交于 2019-12-17 19:54:47
问题 My Firefox version is 46.0.1 and Selenium version is 3.0.1. I am getting error: Your connection is not secure while executing following code: @Test public void test() { ProfilesIni profile = new ProfilesIni(); FirefoxProfile ffProfile = profile.getProfile("newCretedProfile"); ffProfile.setAcceptUntrustedCertificates(true); ffProfile.setAssumeUntrustedCertificateIssuer(false); System.setProperty("webdriver.gecko.driver", "D:\\SELENUIUM\\Drivers\\geckodriver.exe"); FirefoxDriver driver = new

FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver': 'geckodriver' with GeckoDriver and Python in MAC OS

╄→гoц情女王★ 提交于 2019-12-17 17:22:47
问题 I have created a test script to open a url in Eclipse using python and got the following error: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 769, in __init__ restore_signals, start_new_session) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7

ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

我是研究僧i 提交于 2019-12-17 16:35:12
问题 For some reason I get the following error only when I open up a nested webdriver instance. No idea what is happening here. I am using Windows 10, geckodriver 0.21.0, and Python 3.7. ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine Part of Script That Is Working Fine tab_backers = ff.find_element_by_xpath('//a[@gogo-test="backers_tab"]') try: funding_backers_count = int(''.join(filter(str.isdigit, str(tab_backers.text))))

Selenium 3.7 : geckodriver : WebDriverException: org.apache.http.conn.HttpHostConnectException Connection Refused

假装没事ソ 提交于 2019-12-17 14:56:55
问题 Recently I upgraded to Selenium 3.7. Code: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public static void main (String args[]){ System.setProperty("webdriver.gecko.driver", "/usr/local/bin/geckodriver"); WebDriver driver = new FirefoxDriver(); driver.get("http://www.google.com"); driver.quit(); } Included Library: selenium-java-3.7.1/selenium-server-standalone-3.7.1.jar selenium-java-3.7.1/libs/httpcore-4.4.6.jar selenium-java-3.7.1/libs/httpclient

WebDriverException: Message: newSession with GeckoDriver Firefox v65 and Selenium through Python 3.7

一曲冷凌霜 提交于 2019-12-17 14:55:21
问题 I am trying to use Python 3.7 + Selenium + Geckodriver + Firefox v65.0 for scrapping. New window is opening, but Firefox does not sent correct respond about session to Python and crashes after 30 seconds with an error: WebDriverException: Message: newSession In case if I downgrade Firefox to version 60.0.2 - all works correctly with all versions Geckodriver v0.22, 0.23 and 0.24. Firefox version 63.0, 65.0 and 66beta does not work, even if I try different geckodrivers from 0.22 to 0.24. System

WebDriverException: Message: TypeError: rect is undefined

泪湿孤枕 提交于 2019-12-17 10:06:56
问题 I am trying to automate the download of data from a website with a python script using selenium but I get the following error: "WebDriverException: Message: TypeError: rect is undefined". Code trial: from selenium import webdriver from selenium.webdriver.common import action_chains driver = webdriver.Firefox() url="https://www.hlnug.de/?id=9231&view=messwerte&detail=download&station=609" driver.get(url) Now I define the check-box I want to click and I try to click on it: temp=driver.find