selenium-chromedriver

Have ChromeDriver features been deprecated?

邮差的信 提交于 2019-12-06 05:53:42
I had a piece of code that worked perfectly fine until today. public class TestSelenium { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver","chromedriver\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://google.com"); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.findElement(By.name("q")).sendKeys("hello world"); } } The above simple code trow the following error: Started ChromeDriver port=25456 version=26.0.1383.0 log=C:\Use................omedriver.log Exception in thread "main" org.openqa.selenium

How to use webdriver mobile web on desktop browser

半城伤御伤魂 提交于 2019-12-06 05:40:21
I am using selenium webdriver for functional test automation of AUT (Application Under Test). AUT is responsive web and i am almost done with different test case for desktop browser. Now the same test cases are applicable for mobile browser as well because the AUT can be accessed from mobile browser. As it is responsive web when we open in mobile browser the UI has some different representation. So we need to run those test for mobile browsers as well. For manual testing team using safari browser's user agent feature Safari Browser menu - > Develop -> User Agent and it satisfies our need for

ImportError: sys.meta_path is None, Python is likely shutting down

牧云@^-^@ 提交于 2019-12-06 05:20:57
问题 Newbee here. Kindly explain why this issue happened and how to fix it. Error: "C:\Program Files (x86)\Python36-32\python.exe" C:/Users/Vivek-Pc/PycharmProjects/tryOutSeries/searchTryout2.py Exception ignored in: > Traceback (most recent call last): File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 173, in del File "C:\Program Files (x86)\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 149, in stop File "C:\Program

Element must be user-editable in order to clear it (Behat)

人走茶凉 提交于 2019-12-06 05:19:40
I am automating a website using the Behat framework, working in PHPStorm, have the latest chromedriver and selenium jar up and running: I cant seem to interact with standard Date fields across the site e.g: input type="date" ng-show="options.editEnabled" Feature file: Then I select a start date of "01012014" public function startDate ($date) { $this->getElement('startDate')->setValue($date); } Returns an error of invalid element state: Element must be user-editable in order to clear it. I have used the same across dozens of other websites using the same code with no problems, does anyone have

Python Webscraping Selenium and BeautifulSoup (Modal window content)

落花浮王杯 提交于 2019-12-06 04:53:33
I am trying to learn webscraping (I am a total novice). I noticed that on some websites (for eg. Quora), when I click a button and a new element comes up on screen. I cannot seem to get the page source of the new element. I want to be able to get the page source of the new popup and get all the elements. Note that you need to have a Quora account in order to understand my problem. I have a part of a code that you can use using beautifulsoup, selenium and chromedriver: from selenium import webdriver from bs4 import BeautifulSoup from unidecode import unidecode import time sleep = 10 USER_NAME =

How to use chomedriver with a proxy for selenium webdriver?

亡梦爱人 提交于 2019-12-06 04:34:31
问题 Our network environment using a proxy server to connect to the outside internet, configured in IE => Internet Options => Connections => LAN Settings, like "10.212.20.11:8080". Now, I'm using selenium webdriver for chrome and IE, but with the proxy server enabled, I can't start the browser. Here is the python code: from selenium import webdriver driver = webdriver.Chrome(executable_path='E:\Selenium\WebDrivers\chromedriver.exe') Here is the error message(If disable the proxy in IE "Internet

Feign focus in Selenium chrome browser

空扰寡人 提交于 2019-12-06 03:45:54
问题 I'm using Selenium to scrape data from a website. The website requires window focus in order to display certain elements that I need. I want to be able to run my program in the background, without having to focus the window while it's running. Is there any way to trick the site into thinking it's focused on? I'm using the selenium chrome driver. Edit: Here's a quick and dirty test I built. Check out the code on GitHub The website background color will turn black when the window.onblur event

Remote debugging Internjs that runs on selenium chromedriver

会有一股神秘感。 提交于 2019-12-06 03:19:37
问题 I try to remotely debug tests run by Internjs. Basically it is a Chrome that is run by Selenium and Chromedriver. I set up Chromedriver debuggerAddress option as debuggerAddress: '127.0.0.1:8765' Now when I run tests Selenium waits some time and than fails with message: FATAL ERROR UnknownError: [POST http://localhost:4444/wd/hub/session / {"desiredCapabilities":{"browserName":"chrome","name":"tests/intern_local","idle-timeout":60,"selenium-version":"2.44.0","chromeOptions":{"debuggerAddress"

Selenium WebDriverJS, cannot build webdriver for Chrome

家住魔仙堡 提交于 2019-12-06 02:41:06
问题 I am having some trouble setting up Selenium WebDriverJS. My goal is to run selenium tests on Chrome browser using Javascript (node). I am following the instructions on https://code.google.com/p/selenium/wiki/WebDriverJs as well as https://code.google.com/p/chromedriver/wiki/GettingStarted First I downloaded the chromedriver, and ran it on a terminal: $ ./chromedriver Starting ChromeDriver (v2.2) on port 9515 And then, I installed selenium-webdriver: $ npm install selenium-webdriver npm http

How to watch xvfb session that's inside a docker on remote server from my local browser?

旧时模样 提交于 2019-12-06 01:44:45
问题 I'm running a docker (That I built on my own), that's docker running E2E tests. The browser is up and running but I want to have another nice to have feature, I want the ability of watching the session online. My docker run command is: docker run -p 4444:4444 --name ${DOCKER_TAG_NAME} -e Some_ENVs -v Volume:Volume --privileged -d "{docker-registry}" >> /dev/null 2>&1 I'm able to export screenshots but in some cases it's not enough and the ability of watching what is the exact state of the