selenium-chromedriver

Getting Chrome to launch via Selenium

假如想象 提交于 2019-12-18 12:17:32
问题 Hi all I'm very new to this and am having issues getting an instance of a Chrome browser from selenium in python. I'm using Windows 8. I have downloaded the chromedriver binary and added it to my path but I get the following error in Python: selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver executable needs to be available in the path. This error occurs for the following line: driver = webdriver.Chrome(executable_path='path\to\chromedriver_win32_2.0') Any help is greatly

How to use authenticated proxy in selenium chromedriver?

若如初见. 提交于 2019-12-18 12:12:08
问题 After searching for many hours I am starting to think this is impossible. I need to run Chrome through selenium using different authenticated (not public) proxy's for each run. PROXY_IP = "<some IP address>" UID = "<the user id>" PWD = "<the password"> options = webdriver.ChromeOptions() options.add_argument("--proxy-server=%s:%s@%s" % (UID,PWD,PROXY_IP)) driver = webdriver.Chrome(executable_path=".\\driver\\chromedriver.exe", chrome_options=options) driver.get("<site URL>") Chrome will fire

SessionNotFoundException: Session ID is null. Using WebDriver after calling quit()? (Selenium)

倖福魔咒の 提交于 2019-12-18 11:35:53
问题 I am trying to write some selenium automated UI tests using Cucumber/Java. If I have only one test in my feature file, everything works fine. But if I add a second test, I get this error on driver.get() : org.openqa.selenium.remote.SessionNotFoundException: Session ID is null. Using WebDriver after calling quit()? Build info: version: '2.51.0', revision: '1af067dbcaedd7d2ab9af5151fc471d363d97193', time: '2016-02-05 11:20:57' Basically, I am initializing the webdriver variable on the

Protractor + chrome driver: Element is not clickable at point

此生再无相见时 提交于 2019-12-18 11:07:55
问题 Hi I am having some trouble getting a basic protractor test to work. My setup: I use requirejs so I init angular using angular.bootstrap(), not the ng-app attr. According to protractor docs this is not supported out of the box, but seems to work fine for tests that don' involve clicking. Protractor conf.json: "use strict"; exports.config = { specs: '../E2ETests/**/*.js', chromeOnly: true, getPageTimeout: 30000, allScriptsTimeout: 30000 } I use some third party jquery plugs which I wrap in

How to handle browser notification popup which is without any elements?

我的未来我决定 提交于 2019-12-18 09:43:43
问题 How to press the OK button as per the image. I can switch to this window. but it is not loaded till i click ok, so there is no any elements. Alert handle does't helped too. Autoit cannot detect this pop up message too. disable-notifications cant help too. Any ideas? Two screeshots is added. Firefox snapshot: Chrome Snapshot: p.companieGenreal.sActivities().click(); driver.switchTo().defaultContent(); String parent = driver.getWindowHandle(); p.companieGenreal.sAddNew().click(); p

Is there a change in the handling of unhandled alert in ChromeDriver and Chrome with Selenium?

坚强是说给别人听的谎言 提交于 2019-12-18 09:25:46
问题 I have a test that has been running fine for months. One thing it does is cause an alert and then verify the alert text. This is running with Selenium, Java and Chrome Driver 76.0.3809.68. Lately it has been giving me the error: "No such alert". What happens is it clicks a button and waits for an alert if there: try { button.click(); } catch (UnhandledAlertException ex) { // nothing } // then here goes code to accept the alert and get the text when stepping through I see the alert. When I run

How to set selenium webdriver from headless mode to normal mode within the same session?

痴心易碎 提交于 2019-12-18 08:58:47
问题 Is it possible after setting selenium webdriver to a headless mode set it back to a normal mode? from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.headless = True driver = webdriver.Firefox(options=options) driver.get(http://stackoverflow.com) # set driver back to normal mode 回答1: No , it won't be possible to make Chrome operate initially in headless mode and then switch back to normal mode within the same session. When you

Protractor issue with chromedriver versions like 76.0.3809.12

点点圈 提交于 2019-12-18 07:16:20
问题 Protractor issue while running the conf.js file for new chromedriver versions like 76.0.3809.68 I am trying to run the protractor tests on latest chrome version which got updated today 76.0.3809.100 but they keep failing and giving error. The versions that i have are protractor version: 5.4.2, webdriver-version: 12.1.6, selenium standalone version available: 3.141.59 chromedriver versions available: 2.46 [last], 76.0.3809.12 geckodriver version available: v0.24.0 [last] I have tried updating

Enable Flash with Chromedriver in Python

让人想犯罪 __ 提交于 2019-12-18 07:14:52
问题 Trying to enable Adobe Flash Player in chromedriver using python. I've gone through a number of attempts including: prefs = {'plugins.plugins_enabled': 'Adobe Flash Player'} prefs = {'plugins.plugins_list' : [{'enabled':True,'name':'Adobe Flash Player'}]} prefs = { 'profile.default_content_setting_values.plugins': 1, 'profile.content_settings.plugin_whitelist.adobe-flash-player': 1 } along with a few other variations that I found from the top google results regarding this issue. 回答1: Ended up

Is there a version of selenium that is not detectable ? can selenium be truly undetectable?

只愿长相守 提交于 2019-12-18 07:08:38
问题 I am running chrome driver over selenium on a ubuntu server . behind a residential proxy network . yet my selenium is being detected . is there a way to make chrome driver and selenium 100% undetectable ? I have been trying for so long I lost track of the many things I have done including 1) trying different versions of chrome 2)adding several flags and removing some words from the chrome driver file. 3)ruining it behind a proxy . residential ones also . using incognito mode . 4)loading