geckodriver

NoSuchWindowError: Browsing context has been discarded with GeckoDriver Firefox and Protractor(Selenium)

白昼怎懂夜的黑 提交于 2020-04-05 05:14:11
问题 I'm trying to run a simple test script using protractor. Environment: Node Version: v9.8.0 Protractor Version: 5.4.1 Angular Version: 1.x Browser(s): Mozilla Firefox 60.1.0 Operating System and Version: HELiOS release 6.10 Here's my protractor config file. exports.config = { specs: ['todo-spec.js'], capabilities: { browserName: 'firefox', marionette : true } }; This is my test script (todo-spec.js) describe('application homepage', function() { it('should open homepage', function() { console

org.openqa.selenium.remote.ProtocolHandshake createSession INFORMATION: Attempting bi-dialect session with Selenium Grid

醉酒当歌 提交于 2020-03-22 09:29:31
问题 I set up a local selenium grid to test something. The build runs normal when connecting to another grid but when using the local grid the build just stops at this point: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running xxx.xxxxxxxxxxxx.xxx.xxxxxxxxxxx.XXXXXXXXXXXX Sep 17, 2018 3:13:49 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFORMATION: Attempting bi-dialect session, assuming Postel's Law

pageLoadTimeout not working for Firefox browser in selenium

ⅰ亾dé卋堺 提交于 2020-03-21 06:38:23
问题 In firefox browser pageLoadTimeout is not working whereas same code is working for chromium browser. public static WebDriver startApplication(WebDriver driver, String browserName, String appURL) { switch (browserName.toLowerCase()) { case "chrome": WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); break; case "firefox": WebDriverManager.firefoxdriver().setup(); driver = new FirefoxDriver(); break; case "ie": WebDriverManager.iedriver().setup(); driver= new

pageLoadTimeout not working for Firefox browser in selenium

早过忘川 提交于 2020-03-21 06:38:13
问题 In firefox browser pageLoadTimeout is not working whereas same code is working for chromium browser. public static WebDriver startApplication(WebDriver driver, String browserName, String appURL) { switch (browserName.toLowerCase()) { case "chrome": WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); break; case "firefox": WebDriverManager.firefoxdriver().setup(); driver = new FirefoxDriver(); break; case "ie": WebDriverManager.iedriver().setup(); driver= new

Unable to create session error using GeckoDriver and Firefox through Selenium and Java org.openqa.selenium.WebDriverException

会有一股神秘感。 提交于 2020-03-04 23:06:22
问题 I'm able to run tests with Intellij but when I run the same tests via Jenkins I get the following error. org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:46285 Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'M-AMS-DEVELOPER', ip: '108.61.189.113', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_241' Driver info: driver.version:

Selenium Google Login Block

房东的猫 提交于 2020-03-01 06:35:37
问题 I have a problem with Google login. I want to login to the my account but Google says that automation drivers are not allowed to login. I am looking for a solution. Is it possible to get cookie of normal Firefox/Chrome and load it into the ChromeDriver/GeckoDriver? I thought that this can be a solution. But I am not sure is it possible or not.. Looking for solutions.. Also, I want to add a quick solution for this. I solved this issue by using one of my old verified account. That can be a

“unknown error”,“message”:“connection refused”,“stacktrace” while trying to use firefoxprofile through GeckoDriver with Selenium on Mac OS X

十年热恋 提交于 2020-01-30 09:00:09
问题 I am getting connection refused error while creating a firefox driver. System.setProperty("webdriver.gecko.driver", "path to gecko driver"); FirefoxOptions options = new FirefoxOptions(); options.setLogLevel(FirefoxDriverLogLevel.FATAL); options.setAcceptInsecureCerts(true); options.addArguments("-profile", "./firefoxprofile"); options.setHeadless(true); LOGGER.info("Completed setting firefox optons"); WebDriver driver = new FirefoxDriver(options); Log: 1550014357421 mozrunner::runner INFO

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 while executing code using GeckoDriver and Firefox

半城伤御伤魂 提交于 2020-01-30 08:17:34
问题 Code Trials : public class loginmethod { @Test public void login() throws InterruptedException { System.setProperty("webdriver.gecko.driver", "D:\\Tools\\geckodriver"); WebDriver driver = new FirefoxDriver(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); } } Binary Version Details : FireFox : 60.0 Selenium Jar : 2.45 GeckoDriver : 20.1 When I run code using Firefox driver following error is given: org.openqa.selenium.firefox

How to quit all the Firefox processes which gets initiated through GeckoDriver and Selenium using Python

倖福魔咒の 提交于 2020-01-24 20:15:43
问题 I am using python 3.7 + selenium + geckodriver.exe + firefox 70.0.1x64,I know driver.quit() could close firefox window,but in some situation I can not quit firefox totally,I do not know why,this is my code: from selenium import webdriver import time def func1(): driver = webdriver.Firefox() i = 0 while True: try: if i > 10 and driver is not None: driver.quit() driver = None print('quit success') i += 1 print(i) time.sleep(1) except KeyboardInterrupt: if driver is not None: driver.quit()

How to open Firefox Developer Edition through Selenium

試著忘記壹切 提交于 2020-01-21 14:37:53
问题 Following some tutorials on Selenium, I installed the geckodriver . In order to run a simple code on python to run Selenium, I have to specify this path in the command line: export PATH=$PATH:/home/xx/Downloads/geckodriver-v0.24.0-linux64 But I want Selenium to open the Developer edition I have as it contains the extension I want to test: When I sepcify the path for the Developer edition executable: export PATH=$PATH:/home/xx/Documents/ff_extension/firefox/ Then run my python script: from