selenium-chromedriver

Protractor / Selenium Webdriver : Runtime.executionContextCreated has invalid 'context'

纵饮孤独 提交于 2019-12-23 07:13:36
问题 I use protractor to test Angular2 app. It was working fine and I think I didn't change nothing in conf but now it ends up with this: ... super(opt_error); ^ SessionNotCreatedError: session not created exception from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"4012.1","isDefault":true},"id":1,"name":"","origin":"://"} (Session info: chrome=54.0.2840.71) (Driver info: chromedriver=2.21.371459 ... I work on a Mac OSX 10.11.4, Chrome 54.0.2840.71.

Failed to launch child process

时间秒杀一切 提交于 2019-12-23 06:13:11
问题 When I try to run a test on Chrome (selenium / Ruby) then I get the following error. Could anybody help to resolve this? Error :- Background: Login to app # tests\integration\channels.feature:3 [6100:7920:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134949

Failed to launch child process

蓝咒 提交于 2019-12-23 06:12:26
问题 When I try to run a test on Chrome (selenium / Ruby) then I get the following error. Could anybody help to resolve this? Error :- Background: Login to app # tests\integration\channels.feature:3 [6100:7920:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to launch child process [6100:9520:1028/134949

Chromedriver Element is not clickable at point (xxx, yyy). Other element would receive the click:

我只是一个虾纸丫 提交于 2019-12-23 05:42:15
问题 I am getting the following dreaded error when using Chromedriver with Selenium: "org.openqa.selenium.WebDriverException: Element is not clickable at point (xxx, yyy). Other element would receive the click: ..." I know this has been discussed here However my situation is a bit different in the sense if I put a delay of about 5s and then click it works fine. I don't have to do anything special, just wait. I know I can force a click by using JS or Actions, but I want a more elegant way of

Selenium WebDriver analyze large collection of links quickly

左心房为你撑大大i 提交于 2019-12-23 05:13:41
问题 I have a web page with an extremely large amount of links (around 300) and I would like to collect information on these links. Here is my code: beginning_time = Time.now #This gets a collection of links from the webpage tmp = driver.find_elements(:xpath,"//a[string()]") end_time = Time.now puts "Execute links:#{(end_time - beginning_time)*1000} milliseconds for #{tmp.length} links" before_loop = Time.now #Here I iterate through the links tmp.each do |link| #I am not interested in the links I

How can I add an extension to my chromedriver at the Robot level with Selenium2Library

北城余情 提交于 2019-12-23 05:05:23
问题 I would like to instantiate a chromedriver instance in my Robot suite setup but I need to install an extension upon browser startup. I'm able to easily do this at the Python level by simply adding chromeoptions to my webdriver instatiation, but I need to do this at the Robot level. I found that there IS a keyword "Create Webdriver" that allows you to pass arguments into your webdriver instantiation. However, I still cannot get an extension to install at startup. I am using Options from

Setup Chrome WebDriver with remote 'chromedriver.exe' file

拟墨画扇 提交于 2019-12-23 04:36:19
问题 I have chrome installed in my system. I'm using Selenium to run some tests on chrome. I have downloaded the Chromedriver.exe to MyDocuments. I have set the 'webdriver.chrome.driver' using System.setProperty() and started ChromeDriver(). It works fine. System.setProperty("webdriver.chrome.driver", "C:\\MyDocuments\\chromedriver.exe"); driver=new ChromeDriver(); Now, I'm trying to put Chromedriver.exe in a remote machine 'https://remotemachine/chromedriver.exe'. When I set the System property

WebDriverException: Message: chrome not reachable

∥☆過路亽.° 提交于 2019-12-23 04:17:17
问题 I use Selenium Python , when I run my crawler I got this error WebDriverException: Message: chrome not reachable (Driver info: chromedriver=2.9.248304,platform=Linux 3.16.0-4-amd64 x86_64) I read this question I downloaded chromedriver (binary) and I copy/paste it to /usr/bin I tried by driver = webdriver.Chrome('/usr/bin/chromedriver') but I have the same error 回答1: In your protractor.configuration file, if you have the following: capabilities: { 'browserName': 'chrome', 'chromeOptions': {

How to use predefined chrome profile in selenium for python?

冷暖自知 提交于 2019-12-23 03:49:11
问题 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

TestNG Selenium Grid 2 not running tests in parallel

点点圈 提交于 2019-12-23 03:42:13
问题 I seem to be having an issue when attempting to run tests in parallel using TestNG alongside Selenium Grid 2. Although the right number of browsers are opened to match the amount of tests that I'm running , all instructions for all tests are being fired to the same browser window. For example, each test will open a page and attempt to log in. Four browser windows will open, but one browser window will navigate to the login page four times and then type the username in 4 times, whilst the rest