selenium-chromedriver

Chrome opens for a second and the crashes

北慕城南 提交于 2019-12-08 08:16:33
问题 I'm using Appium and C# in order to run tests on my Galaxy S5. Everyhting worked perfectly , but last night we have updated the ChromeDriver to 2.25 and suddenly the chrome in my mobile just open the chrome, shows "data:" in the URL and crashes. on the other hand, the chrome in on Windows OS(selenium) works well. [SetUp] public void Setup() { DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.SetCapability("device", "Android"); capabilities.SetCapability("deviceName",

ChromeDriver disable rendering and CSS

老子叫甜甜 提交于 2019-12-08 08:10:29
问题 I want to run high performance tests on chrome driver. They still require execution of javascript. But rendering the page and executing/parsing css, is just not necessary and a waste of time. How can I prevent chromedriver from rendering and/or loading the css? Run it fully headless. I am aware of HTMLUnit as an alternative but it is extremely slow, and does terrible job with the javascript. I did find Phantom Driver https://github.com/qa/arquillian-phantom-driver and I tested it but I would

RSelenium cannot access DOM

拟墨画扇 提交于 2019-12-08 08:01:32
问题 I am using Selenium on Stockpair Website s = remoteDriver(remoteServerAddr = "localhost", port = 4444, browserName = "chrome") s$open() url <- "https://www.stockpair.com/sp#trading/page" s$navigate(url) dir <- s$findElement("css selector", "div.stockSelectionButton.left") dir$clickElement() I get the error Error: Summary: StaleElementReference Detail: An element command failed because the referenced element is no longer attached to the DOM. class: org.openqa.selenium

can't get xpath to click on pop up in selenium

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 07:55:09
问题 I'm trying to extract a few simple CIK codes from the SEC. If you run the code below, you will get a pop about a "survey". if you do it manually, you won't see it. it bombs my code. but since it is in selenium, I can't inspect it with chropath to get the xpath to click on the "NO". And I can't recreate the pop up in a normal browser. What do i do? from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver

Chrome browser unable to create session with selenium grid. It simply hangs randomly for tests

大兔子大兔子 提交于 2019-12-08 07:37:18
问题 What do i need to do to use the DBUS_SESSION_BUS_ADDRESS =/dev/null. I am using selenium standalone server with hub on windows machine and trying to use chrome browser of a mac. I have 70 tests for which hub creates a session on node , test steps are fired and browser is quit. So at times randomly at times for chrome browser session is not created and the hub has to wait until timeout occurs . Thanks The following link https://github.com/SeleniumHQ/docker-selenium/issues/87 suggests to set

How can I refresh my Selenium ChromeDriver instance without losing the cookies?

…衆ロ難τιáo~ 提交于 2019-12-08 07:35:21
问题 In the manual test case, which I'm trying to automate in Selenium using C#, it says: "Login with checkbox 'remember me' activated, close the browser, open the browser, check if user is still logged in." Manually executed, this is of course successfull. With Selenium in Chrome, I always lose the cookies across sessions. What I tried so far: public static void RefreshDriver(TestParams testParams) { var cookies = testParams.Target.Driver.Manage().Cookies.AllCookies; var url = new Uri(testParams

Docker image with python3, chromedriver, chrome & selenium

六眼飞鱼酱① 提交于 2019-12-08 07:33:57
问题 My objective is to scrape the web with Selenium driven by Python from a docker container. I've looked around for and not found a docker image with all of the following installed: Python 3 ChromeDriver Chrome Selenium Is anyone able to link me to a docker image with all of these installed and working together? Perhaps building my own isn't as difficult as I think, but it's alluded me thus far. Any and all advice appreciated. 回答1: Try https://github.com/SeleniumHQ/docker-selenium. It has python

Running node js selenium test case on Chrome get Error Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:63528

不问归期 提交于 2019-12-08 07:22:48
问题 Running a test case on selenium node js got error Error: ECONNREFUSED connect ECONNREFUSED. Test case var assert = require('assert'), test = require('selenium-webdriver/testing'), webdriver = require('selenium-webdriver'); test.describe('Google Search', function () { test.it('should work', function (done) { this.timeout(100000); var driver = new webdriver.Builder().withCapabilities(webdriver.Capabilities.chrome()).build(); driver.get('http://www.google.com'); var searchBox = driver

Can't start c#+SeleniumWebDriver+Specflow+Nunit tests on Teamcity

≯℡__Kan透↙ 提交于 2019-12-08 06:53:09
问题 Now trying to run my Selenium tests, using Teamcity server. Server is installed locally. At this moment project in teamcity contains 3 steps: NuGet instaler. Step with Visual Studio as runner. Step with NUnit as runner. At this moment, 1 and 2nd steps are successfully finished. The 3rd step fails with next record in log: [Step 3/3] Volvo.DigitalCommerce.AutomatedTests.dll (9m:11s) [15:02:26][Volvo.DigitalCommerce.AutomatedTests.dll] Volvo.DigitalCommerce.AutomatedTests.Features.ChildSeat.CS

How to disable selenium chrome driver's auto closed action after some time without activity?

旧街凉风 提交于 2019-12-08 05:46:38
问题 I used selenium RemoteWebdriver to connection to remote hubs. options = webdriver.ChromeOptions() options.add_argument("window-size=1920,1080") options.add_argument("user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36") driver = webdriver.Remote('http://127.0.0.1:4444/wh/hub', desired_capabilities=options.to_capabilities()) driver.get('https://example.com') If there are no activities for some times, the session