geckodriver

Getting “The path to the driver executable must be set by the webdriver.gecko.driver ” while try to run selenium Grid code with Gecko driver

梦想与她 提交于 2019-12-24 06:18:09
问题 I am running basic selenium code with the help of selenium Grid . Below are the steps: Step 1 :- Downloaded the latest version of selenium Standalone server (3.4.0) ; Step 2 :- Created HUB by using command java - jar <path of selenium standalone server>\\selenium-server-standalone-3.4.0.jar -role hub -> run successfully ; Step 3 :- Created node using command java -jar selenium-server-standalone-3.4.0.jar -role hub -node http://localhost:4444/grid/register -> run successfully ; Step 4 :-

How to keep the “headless” option after driver.close() - Selenium/ Python

懵懂的女人 提交于 2019-12-23 05:14:12
问题 After I invoke the driver.close() method in selenium, followed by driver.start_session(capabilities=cap, browser_profile=my_profile) my browser seems to be unable to keep the "headless" option, precedently configured as options = Options() options.headless = True as I initialized the webdriver. I even tried to use the driver.quit() method and the re-initialize the webdriver, but it seems it easily throws a lot of errors; at least with the project developed as I did till now. If there's a way

Can a website detect when you are using selenium with geckodriver?

余生长醉 提交于 2019-12-23 04:42:02
问题 Is it possible to detect instances of firefox browsers that are being controlled by Selenium and geckodriver? Note there is a corresponding answer for chromedriver, but I'd like to know whether this is possible for firefox/geckodriver. 回答1: Yes you can detect geckodriver controlled selenium with a simple check in JavaScript var runningSelenium = !("showModalDialog" in window); 回答2: As others have pointed out, there are a variety of different ways that a site can fingerprint and detect that

Can a website detect when you are using selenium with geckodriver?

纵然是瞬间 提交于 2019-12-23 04:41:48
问题 Is it possible to detect instances of firefox browsers that are being controlled by Selenium and geckodriver? Note there is a corresponding answer for chromedriver, but I'd like to know whether this is possible for firefox/geckodriver. 回答1: Yes you can detect geckodriver controlled selenium with a simple check in JavaScript var runningSelenium = !("showModalDialog" in window); 回答2: As others have pointed out, there are a variety of different ways that a site can fingerprint and detect that

Selenium geckodriver executes findElement 10 times slower than chromedriver (.Net)

喜欢而已 提交于 2019-12-23 02:58:11
问题 Sorry didn't find a similar question and maybe somebody can help. Due to additional requirements we have to test our project not only with Chrome but with Firefox as well. When we simply changed a test context to Firefox it turned out that all calls of findElement took 10 times more time than with Chrome. All tests are completely ruined. We tried to use different test machines but the results are the same. The project is on Core .Net. For testing we use MSTest V2, Firefox 63 (64 bit) and

Selenium 3.0.1 crashes FireFox 51.0.1 during driver.quit() @ Win 7 Home Premium & GeckoDriver 0.13.0

两盒软妹~` 提交于 2019-12-23 02:20:16
问题 Win 7 and FireFox is running in German language. Win 7 has all available updates installed. Same for 32 and 64 Bit GeckoDriver! (my Win 7 ist 64 Bit; my FireFox is 32 Bit). Same for GeckoDriver 0.14. Is this just a problem on my PC ? driver.quit() is working on my InternetExplorer without a problem. package JS_JFrame1; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class SeleniumFireFoxMinimal1 { public static void main(String[] args) throws

Why Selenium always create temporary Firefox Profiles using Web Driver?

蹲街弑〆低调 提交于 2019-12-23 02:18:21
问题 Why Selenium always create temporary Firefox Profiles using Web Driver though I told it to use a existing one ? According to this answer it is not possible to stop Selenium from creating temporary Firefox Profiles using Web Driver. But with chromedriver I can achieve this. So why it is different for Firefox. I checked the FirefoxProfile.cs of Selenium repo and found the following code snipet is used to copy profile--- public void WriteToDisk() { this.profileDir = GenerateProfileDirectoryName(

Selenium firefox - WebDriverException: Reached error page: about:certerror

£可爱£侵袭症+ 提交于 2019-12-22 10:59:21
问题 Meta :- Firefox v51.0.1 (32-bit) Windows 10 Selenium 3.0.1 Geckodriver Win32 v0.13.0 Java v1.8.0_71 Steps to reproduce :- WebDriver driver = new FirefoxDriver(); driver.get("untrusted/self-signed URL") Stacktrace :- org.openqa.selenium.WebDriverException: Reached error page: about:certerror?e=nssBadCert&u=xxxxxxxx&c=UTF-8&f=regular&d=xxxxxx%20uses%20an%20invalid%20security%20certificate.%0A%0AThe%20certificate%20is%20not%20trusted%20because%20it%20is%20self-signed.%0AThe%20certificate%20is

python selenium 3.0 - Firefox 47.0.1 installed in default location is not identified. (geckodriver)

你说的曾经没有我的故事 提交于 2019-12-22 08:11:26
问题 Following is my environment: OS : Windows 10 - 64 (Home edition) Browser : Firefox 47.0.1 (32 bit) Python : 2.7.10.12 (64 bit) selenium : 3.0.1 Geckodriver: geckodriver-v0.11.1-win64.zip Firefox is installed in C:\Program Files (x86)\Mozilla Firefox . geckodriver.exe is placed in C:\Python27\Scripts location. Following is my python code: from selenium import webdriver driver = webdriver.Firefox() driver.get("http://www.python.org") Which gives the following error: Traceback (most recent call

Unable to load firefox in selenium webdriver in python

血红的双手。 提交于 2019-12-22 04:43:22
问题 I have installed Python 3.6.2, Selenium 3.5.0 with GeckoDriver 0.18.0 and the firefox version is 54.0.1version on windows 7. I am trying to run a selenium script which is loading a firefox where i get mismatch with firefox version error. Please let me know what is the issue. The code and error message below. from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.firefox.firefox_binary import FirefoxBinary capabilities = webdriver