selenium-chromedriver

Allow Flash content in Chrome 69 running via chromedriver

纵饮孤独 提交于 2019-12-06 01:43:30
问题 Does anybody know how to enable Flash plugin in Chrome 69. I use chromedriver 2.41 with java selenium bindings. I've tried with prefs.put("profile.default_content_setting_values.plugins", 1); prefs.put("profile.content_settings.plugin_whitelist.adobe-flash-player", 1); prefs.put("profile.content_settings.exceptions.plugins.*,*.per_resource.adobe-flash-player", 1); but with no luck. I've also tried to compare chrome profile preferences with disallowed/allowed flash for particular site and then

How to use Selenium on Colaboratory Google?

£可爱£侵袭症+ 提交于 2019-12-06 01:00:18
I scraping many info from web, and I hope it works on cloud. So I'd like to use colaboratory, but it turned error WebDriverException Traceback (most recent call last) <ipython-input-35-abcc3b93dfa7> in <module>() 20 options.add_argument("--start-maximized"); 21 options.add_argument("--headless"); ---> 22 driver = webdriver.Chrome('chromedriver', chrome_options=options) 23 24 book = cd + "/target.xlsx" /usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome

Install specific chromedriver for protractor

核能气质少年 提交于 2019-12-06 00:05:43
I am having an issue with chrome driver that runs on the CircleCi. The problem is that when running: ./node_modules/.bin/webdriver-manager update and then checking the version of chromedriver and selenium with the command: ls -lt node_modules/protractor/selenium it shows the latest versions are: selenium-server-standalone-2.45.0.jar chromedriver chromedriver_2.15.zip According to the npm.taobao.org note ChromeDriver version 2.15 supports Chrome v40-43. But CicleCi documentation says that it uses Chrome version 38.0. Consequently, I need to use ChromeDriver v2.13 which is compatible with Chrome

Selenium Webdriver Chromedriver timeout on start in headless mode

戏子无情 提交于 2019-12-05 23:02:33
I am using Selenium Webdriver, with Ruby 32-bit 1.9.3, Chromedriver v2.9.248315, Chrome 38.0.2125.111 m and a local instance of Jenkins 1.588 Gems: cucumber (1.3.17), selenium-webdriver (2.43.0), watir-webdriver (0.6.11) (can provide list of all others if you think necessary) Windows 7 Professional 64-bit edition. When running a Jenkins job which starts Chrome using chromedriver and then trying to interact with it I get a timeout error. When doing the same on my desktop via a command prompt window it works perfectly. Running the same Jenkins job, starting Firefox instead of Chrome it works

Get Emulator list from Chrome

拜拜、爱过 提交于 2019-12-05 22:32:19
As per ChromeDriver site , the user can use the emulators created/present in the chrome for Selenium execution. Detailed View Here . I wanted to display all the created/available emulators from Chrome . Chrome could be storing that details in some json file or something.If so how to access it and print it in Java Did a Notepad++ Find in Files and found it. The data is stored in JSON format in file C:\Users\Your UserName\AppData\Local\Google\Chrome\User Data\Default\Preferences Under Key devtools>preferences>standardEmulatedDeviceList I have used Jackson to parse the JSON import com.fasterxml

Run WebDriver with Chrome Canary?

我们两清 提交于 2019-12-05 21:04:20
Is there a way to tell chromedriver (the webdriver implementation within Chrome) to use Canary, Beta or current production chrome? Paul Irish You can ask ChromeDriver to use a Chrome executable in a non-standard location ChromeOptions options = new ChromeOptions(); options.setBinary("/path/to/other/chrome.exe"); On Mac OS X, this should be the actual binary, not just the app. e.g., /Applications/Google Chrome.app/Contents/MacOS/Google Chrome . [via chromedriver Capabilities and Switches] And the way to do this in theintern is by the following config capabilities: { 'selenium-version': '2.35.0'

How to programmatically set download path in Protractor?

主宰稳场 提交于 2019-12-05 20:49:23
I am trying to dynamically set the Chrome download path in conf.js for Protractor. Our webservice exports a file and I am writing a test that needs to know where the download file is going to be in order to verify it. Right now, I am hard setting the browser's download path. The problem is that other members of my team and the build machines will also be running this test and there is no single download path I could choose that would work on every dev and build machine. After doing some reading, I thought the best solution would be get the user data directory from the getCapabilities()

update protractor chrome driver to 74

随声附和 提交于 2019-12-05 19:45:31
How do I update to 74 version of chromedriver normally I would do: webdriver-manager update --versions.chrome 2.46 however the following is not working: webdriver-manager update --versions.chrome 74.0.3729.6 I am on Protractor Version 5.4.2 Dont want to upgrade to 6 as API is not yet completed Log: [16:21:43] E/downloader - undefined [16:21:43] I/update - chromedriver: file exists /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_74.0.3729.6.zip [16:21:43] I/update - chromedriver: unzipping chromedriver_74.0.3729.6.zip (node:35565)

Change download location and name for each file

元气小坏坏 提交于 2019-12-05 19:03:36
I'm doing an automation using Selenium with Chrome WebDriver. The application has to do a series of downloads that need to be saved with different names (Data + Report type) and folders that match the type of report I'm downloading. The problem is that I can only set the default directory when I instantiate a new driver var chromeOptions = new ChromeOptions(); chromeOptions.AddUserProfilePreference("download.default_directory", downloadDirectory); chromeOptions.AddUserProfilePreference("intl.accept_languages", "nl"); chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true");

Chrome version 44 has some issue with selenium test

放肆的年华 提交于 2019-12-05 18:34:48
I am using Selenium and Chrome to write a test, yesterday when my Chrome updated from 43 to 44 my test got some problems with action.sendkey("arrow.down") and etc. I tried to uninstall Chrome and install Chrome 43 but as soon as I do it updates its self to 44 !!! I also tried chromedriver 2.16 but it did not work too. How can I fix it? alecxe This is related to Keys.ENTER, Keys.TAB, Keys.SPACE are not working on Chrome 44 and Input.dispatchKeyEvents handles some keys incorrectly . The problem was fixed. You need to give it some time and upgrade as soon as a new chromium release come out, or