selenium-chromedriver

Slider button click in selenium python

£可爱£侵袭症+ 提交于 2019-12-08 19:33:53
问题 My issue is the following : I am training to retrieve the information on this website https://www.cetelem.es/. I want to do several things: Click on the two slide buttons to change the information. Retrieve the information following the change of the sliding buttons Put a condition, only retrieve information when tin and tae change. I tried with the following code on google colab : from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver

Chromedriver Devtools port number error

会有一股神秘感。 提交于 2019-12-08 18:26:12
问题 I'm getting the following error while trying to run tests using capybara, selenium and chromedriver-helper. The tests run fine locally on a mac using the same version of chromedriver. I've tried setting the remote debugging port explicitly in my spec_helper, but apparently this is ignored as chromedriver uses a random remote debugging port. Selenium::WebDriver::Error::UnknownError: unknown error: Devtools port number file contents <37329> were in an unexpected format (Driver info:

org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status

南楼画角 提交于 2019-12-08 18:13:42
问题 I am new to Selenium and need some trail to find root cause of the below error. Selenium version - 3.5.3 ChromeDriver version - 2.29.4 Chrome version - 63 org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status from unknown error: missing or invalid 'entry.level' (Session info: chrome=63.0.3239.132) (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any

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

被刻印的时光 ゝ 提交于 2019-12-08 15:22:36
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 would be auto closed. >>> driver.title Traceback (most recent call last): File "<console>", line 1, in

Chromedriver Not Loading Page in Selenium Tests

怎甘沉沦 提交于 2019-12-08 15:09:42
问题 I’m experiencing an exception scenario using chromedriver.exe with some unit tests that I am writing with the help of Selenium. When the first test that uses the chromedriver executes, the browser fires up and the test passes. However, for all the following tests that use the chromedriver, the browser does not successfully navigate to the URL. The browser fires up, momentarily the characters data; appear in the address bar (as it did in the first test that worked), then the correct URL is

Nightwatch - Use chromedriver

不问归期 提交于 2019-12-08 15:06:55
问题 So i saw a similar question on stack here but it did not have an accepted answer nor did it provide me with the information i needed.. I am trying to use 'chromedriver' because 'selenium-webdriver' requires a FF version <= 28. What i've done so far. nightwatch.js tests running fine in FF downloaded chromedriver ( npm install chromedriver -g ) and also npm install chromedriver into my nightwatch project directory went to nightwatch/bin/nightwatch.json and edited the following code "selenium" :

Python Selenium - Clicking Next Page

核能气质少年 提交于 2019-12-08 14:02:17
问题 I am currently writing a python selenium script to take information off a website. I have successfully got the data off page 1 of 100+ in the format I want. I unfortunately can’t get the program to run and collect all the information off the proceeding pages. When I look at the web site target=https://www.freshfields.com/en-gb/contacts/find-a-lawyer/ script it shows me that the “Next” button is compiled like the below; /body/div[@id='main-content']/div[@class='t6a-grid']/div[@class='mmargin

Selenium C# - Chrome Driver doesn't download files on headless mode

て烟熏妆下的殇ゞ 提交于 2019-12-08 13:52:41
问题 I'm using the 77th version of chrome to test some downloads. But I don't understand why it doesn't let download files on headless mode (Only happens on headless mode). This is the code I'm using. _chromeOptions.AddUserProfilePreference("download.default_directory", @"Directory Folder"); _chromeOptions.AddUserProfilePreference("intl.accept_languages", "nl"); _chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true"); _webdriver = new ChromeDriver(_chromeOptions); 回答1: As

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

早过忘川 提交于 2019-12-08 13:45:30
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.Target.Driver.Url); testParams.Target.Driver.Quit(); testParams.Target = testParams.Target.Clone(); //

Taking screenshot in selenium webdriver in Chrome browser

…衆ロ難τιáo~ 提交于 2019-12-08 13:37:56
问题 I am learning selenium Webdriver. I was trying to take screenshot on chrome browser but I got exception for below code (Note: Same piece of code works on firefox). Kindly help me out to take a screenshot on Chrome and please somebody explain me why below code is not working on Chrome. public class ScreenShot { public static void main(String[] args) throws IOException { String key = "webdriver.chrome.driver"; String value = "./driver/chromedriver.exe"; System.setProperty(key, value); WebDriver