geckodriver

Getting Request And Response Using BrowserMobProxy, Selenium, Firefox, marionette/gecko

◇◆丶佛笑我妖孽 提交于 2020-01-02 08:37:07
问题 I'm trying to get response and request using BMP's RequestFilter and ResponseFilter. However, when the webpage loads, nothing gets printed in the console. Everything else seems to work though. Maybe BMP is not watching GeckoDriver? I'm using Firefox 50.0, BrowserMobProxy 2.1.2, Selenium 3.0.1, and GeckoDriver 0.11.1 The testing code is below. Could someone please help me? Thank you very much! BrowserMobProxy server = new BrowserMobProxyServer(); server.enableHarCaptureTypes(CaptureType

Browsing context has been discarded using GeckoDriver Firefox through Selenium

折月煮酒 提交于 2019-12-31 00:56:07
问题 I didn't make any changes to my python selenium program and it worked fine 3 days ago. Now when i try to use it i get: Browsing context has been discarded Failed to decode response from marionette Any idea what could have caused this outside the code? (since no changes were made) I'm using firefox and geckodriver. After i got these errors i updated firefox, geckodriver, and selenium, but it didn't help. 回答1: This error message... Browsing context has been discarded . Failed to decode response

Selenium Why setting acceptuntrustedcertificates to true for firefox driver doesn't work?

*爱你&永不变心* 提交于 2019-12-30 11:19:14
问题 I'm developping some selenium tests and I face an important issue because I didn't found a "real" solution when I test my site with secure connection ( HTTPS ). All solutions I found on stackoverflow are out of date or doesn't work: I am writing a Selenium script in Firefox but I am getting "Untrusted Certificate" How to disable Firefox's untrusted connection warning using Selenium? Handling UntrustedSSLcertificates using WebDriver The only workaround I have is to use the nightly mozilla

Selenium GeckoDriver get IP and Port no of the launched driver instance

最后都变了- 提交于 2019-12-25 15:52:50
问题 I'm using Selenium 3.4, Geckodriver 0.17. I launch FirefoxDriver using the below code System.setProperty("webdriver.gecko.driver", "geckodriver.exe"); FirefoxDriver driver = new FirefoxDriver(); driver.get("http://www.bing.com"); System.out.println(driver.getSessionId()); Is there a way I can get the IP and the port of the launched driver instance? The data I want is printed in the logs. 1499170600204 geckodriver INFO Listening on 127.0.0.1:38840 1499170601127 geckodriver::marionette INFO

Selenium WebDriver, Firefox, Centos, unable to find a matching set of capabilities

吃可爱长大的小学妹 提交于 2019-12-24 20:57:15
问题 I have an application that uses Selenium WebDriver to control FireFox. It runs as a Web Application under Tomcat - yes, this is a bit of an odd architecture, but there are good reasons for doing this. I've been testing this on my MacBook and it's been working well. My code calls WebDriver, WebDriver calls gecko, Firefox runs, all is good. I now move to a Centos-7 box, and hit a problem org.openqa.selenium.SessionNotCreatedException: Unable to find a matching set of capabilities Build info:

How to retrieve the crash data of Firefox using geckodriver (in Java)

ⅰ亾dé卋堺 提交于 2019-12-24 18:29:19
问题 I was asked to provide analyzing crash data of Firefox, so I'm trying to follow the steps in this Firefox docs. I have to add this Python code before my own test code which is in Java : import tempfile from selenium import webdriver from selenium.webdriver.firefox.options import Options # Custom profile folder to keep the minidump files profile = tempfile.mkdtemp(".selenium") print("*** Using profile: {}".format(profile)) # Use the above folder as custom profile opts = Options() opts.add

Getting Difference in count of “Total Number of links” on webpage through Selenium and Browser Development Tools

我怕爱的太早我们不能终老 提交于 2019-12-24 17:53:22
问题 I have written code to count total number of link on Web Page. I used JavascriptExecutor in selenium of that. But issue is that I am getting different count for total number link Java Script command in Selenium and same in browser console. Here are testing details: Website under test : https://www.ebay.com/ Test: Total number of links on Home Page of Ebay. Selenium code and result: WebDriver driver = new ChromeDriver(); driver.get("https://www.ebay.com/"); driver.manage().timeouts()

Firefox options are seems ignored when configuring through desired capabilities?

被刻印的时光 ゝ 提交于 2019-12-24 10:04:45
问题 My idea here is to set marionette verbosity to OFF!! it's working when FirefoxOptions ffOptions = new FirefoxOptions(); ffOptions.setLogLevel(Level.OFF); driver = new FirefoxDriver(ffOptions); but for the following case, it's failed to set verbosity to OFF FirefoxOptions ffOptions = new FirefoxOptions(); ffOptions.setLogLevel(Level.OFF); DesiredCapabilities ffCapabilities = DesiredCapabilities.firefox(); ffCapabilities.setCapability(FirefoxDriver.PROFILE, firefoxProfile()); ffCapabilities

Selenium - NoSuchElementException after switching from frame[0] to window[1] - Firefox GeckoDriver Error - Python

柔情痞子 提交于 2019-12-24 09:48:50
问题 I have receive an error, element not found in the Firefox GeckoDriver browser when i switch from window[1] to frame[0], back to window[1], and then click the close frame button. I want to continue using GeckoDriver because i was having performance issues with ChromeDriver . Sorry this is an internal website and I can't share the HTML . I have done the following to pinpoint the issue. Tested with exact same code and works properly in Chrome driver Works in Firefox when i switch to window[1]

Selenium Actions.movetoElement - org.openqa.selenium.UnsupportedCommandException

元气小坏坏 提交于 2019-12-24 07:49:35
问题 I have a scenario where I have to hover over a menu link and click on the drop down sub menus. The code that I'm using is below: public void changeLanguageTest() throws InterruptedException { WebElement LanguageMenu = driver.findElement(By.cssSelector(".change-language>button")); action.moveToElement(LanguageMenu); WebElement mongolianLang = driver.findElement(By.cssSelector(".change-language>ol>li:nth-child(3)>a")); action.moveToElement(mongolianLang).click().build().perform(); Thread.sleep