selenium-chromedriver

Google 59 no longer supports embedded credentials

≡放荡痞女 提交于 2019-12-07 09:48:26
I am a QA analyst with some JS knowledge and am using Selenium Webdriverjs for some automation. The site requires username/password, so it was designed using the embedded credentials to login ( https://user:password@address.com ). However, with the recent update to Chrome 59 this week, this ability is no longer allowed, even as a configuration change. Does anyone know how to handle the authentication box that appears when you reach a site that requires it? I have tried treating it as an alert box and do not believe it is a modal window. Any help would be greatly appreciated. There is a nice

update protractor chrome driver to 74

一曲冷凌霜 提交于 2019-12-07 08:30:40
问题 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

Run Multiple Instances of ChromeDriver

我是研究僧i 提交于 2019-12-07 04:51:35
问题 Using selenium and python I have several tests that need to run in parallel. To avoid using the same browser I added the parameter of using a specific profile directory and user data (see below). The problem is that I cannot run them simultaneously, one test needs to wait for the other to finish. Otherwise I get the following error from chromedriver: Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 9515 Only local connections are allowed. [0.000][SEVERE]:

How do I use Selenium Webdriver on headless Chrome?

混江龙づ霸主 提交于 2019-12-07 03:31:03
问题 I'm learning to use Selenium for basic things like taking a screenshot, scraping, and testing and would like to use it with headless Chrome, which is now stable as of Chrome 59. I have been able to take a screenshot using the 'selenium-webdriver' gem and chromedriver, but not headless. Here is the ruby script that I am running which hangs after starting to initialize the driver require 'rubygems' require 'selenium-webdriver' Selenium::WebDriver.logger.level = :debug p 'initializing driver'

How to use predefined chrome profile in selenium for python?

元气小坏坏 提交于 2019-12-07 02:51:25
I have several custom profile in my chrome browser. for example i want to use "test 2" profile to be used in my selenium. (see the picture below) https://i.stack.imgur.com/iYcG8.png This is the code i see from the internet. from selenium import webdriver from selenium.webdriver.chrome.options import Options options = webdriver.ChromeOptions() options.add_argument(r'user-data-dir=C:\Users\mycomputer\AppData\Local\Google\Chrome\User Data') browser = webdriver.Chrome(executable_path=r"C:\Users\mycomputer\AppData\Local\Programs\Python\Python36-32\chromedriver.exe", chrome_options=options) How can

Selenium/Python - Extract dynamically generated HTML after submitting form

陌路散爱 提交于 2019-12-07 02:15:20
问题 The web page I am trying to access is using JavaScript to dynamically generate HTML form(this one: https://imgur.com/a/rhmXB ). When typing print(page_source) , the table seems to appear in the HTML being outputted. However , after filling the input field and submitting the form, another input field with CAPTCHA image appears(as shown here: https://imgur.com/a/xVfBS ). After typing print(page_source) , the input form with the CAPTCHA seems not to be inserted into the HTML. My question is: How

Whatsapp Automated Bot not able to search in WhatsApp Contact List

ぃ、小莉子 提交于 2019-12-07 01:24:57
问题 I'm trying to implement a WhatsApp bot, which uses the chromedriver and opens whatsapp web, and sends messages to the contacts. These are the steps of the program: Reads the contacts from an excel file Set the time, when you want to send the message along with the message you want to send Search that name and send message Here are the problems that I'm unable to solve: If the name is not there in recent chats, it is not able to search it from the WhatsApp contact list and send Also I want to

ChromeDriver disable rendering and CSS

别等时光非礼了梦想. 提交于 2019-12-07 00:59:26
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 prefer to stick with chrome due to the extensions and amazing support I can find for it. Chrome

driver.Manage().Logs.GetLog(LogType.Browser) no longer working in Chromedriver version 75.0.3770

五迷三道 提交于 2019-12-06 23:50:39
问题 I am working on a Selenium framework using C# .net and Selenium Webdriver (with Chromedriver). I recently updated to the latest version of Chromedriver 75.0.3770.8 and now one of my lines of code is no longer working: driver.Manage().Logs.GetLog(LogType.Browser) My ChromeOptions are set as follows: options.SetLoggingPreference(LogType.Browser, LogLevel.Severe); None of this has changed - the only update I've made is to Chromedriver 75. If I revert back to Chromedriver 74 then this code works

Docker image with python3, chromedriver, chrome & selenium

一曲冷凌霜 提交于 2019-12-06 23:45:30
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. Try https://github.com/SeleniumHQ/docker-selenium . It has python installed: $ docker run selenium/standalone-chrome python3 --version Python 3.5.2 The instructions