FAQ Database Discussion Community


print values using python 3.4.3 [duplicate]

python,selenium,selenium-chromedriver
This question already has an answer here: Accessing elements of python dictionary 6 answers i am using python script to get browser height using selenium webdriver chrome.. print(browser.get_window_size()) which prints me: {'width': 1382, 'height': 744} i would like to get only height from above..so for getting it i wrote...

Nightwatch - Use chromedriver

selenium-chromedriver,nightwatch.js
So i saw a similar question on stack here but it did not have an accepted answer nor did it provide me with the information i needed.. I am trying to use 'chromedriver' because 'selenium-webdriver' requires a FF version <= 28. What i've done so far. nightwatch.js tests running fine...

Jmeter + Chrome driver config: empty page while processing

performance,google-chrome,jmeter,selenium-chromedriver
I configured jmeter to run tests using Chrome Driver Config. Test run with no errors: 2015/06/01 20:14:14 INFO - jmeter.engine.StandardJMeterEngine: Running the test! 2015/06/01 20:14:14 INFO - jmeter.samplers.SampleEvent: List of sample_variables: [] 2015/06/01 20:14:14 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 2015/06/01 20:14:14 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2015/06/01...

Selenium Chromedriver Hangs?

python,selenium,selenium-chromedriver
I have a long running python app that will periodically (every 30-60 seconds) open a webpage with selenium and chrome driver, run some javascript and take a screenshot. Its running on an EC2 ubuntu instance with chrome in Xvfb and for the most part everything is working, except intermittently the...

Chrome Driver Needs to be available in the path error on Mac

python-2.7,selenium,selenium-chromedriver
I am running OS X 10.9.4 on my laptop, with Chrome 40.0.2214.94 and Selenium 2.44.0, which I installed for Python 2.7 with easy_install. My code is this basic code from a selenium walkthrough: from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome() driver.get("http://www.python.org") assert "Python" in driver.title elem...

WebDriver - “Keep Me Looged In”

selenium-webdriver,selenium-chromedriver,selenium-firefoxdriver
I am testing an application that requires login. Using SafariDriver when I click the "Keep Me Logged In" button every new SafariDriver instance that is created is automatically logged in as expected but when I use FirefoxDriver or ChromeDriver I am asked for my credentials every time as if I've...

Why is my real IP address still visible even when using a proxy?

python,google-chrome,selenium,proxy,selenium-chromedriver
I am trying to understand how it is that our real IP address is discovered even after going through a private exclusive (I'm the only user) high security proxy. PROXY_IP = "<private proxy IP>:<port>" options = webdriver.ChromeOptions() options.add_argument("--proxy-server=%s" % PROXY_IP) driver = webdriver.Chrome(executable_path=".\\driver\\chromedriver.exe", chrome_options=options) driver.get("http://www.stayinvisible.com/") This website displays a bunch...

WebElement to do a google search

java,selenium,selenium-webdriver,selenium-chromedriver
I am using selenium and its WebDriver API to do a quick google search for something. The examples that are usually given include this: driver.get("https://www.google.com"); WebElement element = driver.findElement(By.name("q")); element.sendKeys("Cheese"); element.submit(); Apparently this will search for 'Cheese' in google. But I'm not sure where they got 'q' from or how...

Watir-Webdriver Control Android ChromeDriver on Android Device

android,selenium-webdriver,webdriver,watir-webdriver,selenium-chromedriver
I downloaded ChromeDriver https://sites.google.com/a/chromium.org/chromedriver/downloads and put it in my platform-tools folder within the Android SDK folder. I have my phone connected and it appers to be setup correcly, when I run ./chromedriver it says $ ./chromedriver Starting ChromeDriver 2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf) on port 9515 Only local connections are allowed. However how...

Selenium WebdriverJS won't even run the example

javascript,node.js,selenium,selenium-webdriver,selenium-chromedriver
Okay, I think I've done my homework here... I can't for the life of me get the official Selenium Webdriver npm module to work; I'm stuck. Here's my versions of everything... Ubuntu 14.04 NodeJS v0.12.0, underneath Express 4.0 Java OpenJDK 1.6.0_34 Chrome Stable 33.0.1750.152 Chromedriver 2.9 I created a Digital...

Automate a button click on chrome://extensions page using selenium webdriver

selenium,selenium-webdriver,webdriver,selenium-chromedriver
I'm trying to write an automated test that will automate the process of updating a google chrome extension. I'm not aware of another method of doing this automatically so here is what I'm currently trying to do: Open the chrome extensions page (as far as I'm aware this is just...

How to close an opened file without using robot

java,selenium,selenium-webdriver,selenium-chromedriver
I am using Selenium to test a website. I can upload a ".txt" file and then double click on it to open,But I am not able to close the opened file using selenium!!! I know there is a solution with robot tool by using Alt+F4 but I am not allowed...

Chrome args and prefs don't seems to be work in protractor conf

google-chrome,testing,selenium,protractor,selenium-chromedriver
Need help with below issues. I have work around for issue 1 so any tips on issue 2 would be great: --start-maximized won't trigger full window so my current work around is adding below line in beforeEach function: browser.driver.manage().window().maximize(); Trying to download file to default directory but the file is...

rselenium | get youtube page source

r,selenium,youtube,selenium-chromedriver,rselenium
Why is the page source of youtube.com not scrapeable? I tried the following (using phantomjs as well as chrome with a selenium server) library(RSelenium) pJS <- phantom(pjs_cmd = ...) Sys.sleep(5) # give the binary a moment remDr <- remoteDriver(browserName = 'phantomjs') remDr$open() remDr$navigate("https://www.youtube.com/") remDr$getTitle()[[1]] # [1] "YouTube" remDr$getPageSource() Returns: Error...

Chrome driver information in console

java,google-chrome,selenium,webdriver,selenium-chromedriver
Im using ChromeDriver in my selenium tests, in console Im getting: Starting ChromeDriver 2.15.322448 (521791b310fec1797c81ea9a20326839860b7d3) on port 15823 is there any way to skip or not show this at all in console output?...

Uploading a file that is stored on the internet - “path is not absolute” error

c#,selenium,selenium-webdriver,selenium-chromedriver
I have a Selenium test running with ChromeDriver, that uploads a video file by using SendKeys to provide a path to the file element, circumventing the dialog box. Driver.FindElement(By.Id("videoFile")).SendKeys("C:\src\TestFiles\testvideo.mp4"); I'm in the process of moving our build boxes to the cloud to save time/money/effort, but this means that using locally-stored...

How do I load the ChromeDriver binary from the classpath?

java,webdriver,classpath,selenium-chromedriver
A number of sources make reference to loading the ChromeDriver binary from the classpath, but I haven't worked out how to do it if the binary is not in the classpath root. To specify the path for the binary it seems that you have to set a system property "webdriver.chrome.driver"....

Error message: “'chromedriver' executable needs to be available in the path”

python,selenium,selenium-chromedriver
I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/ After downloading the zip file, I unpacked the zip file to my downloads folder. Then I put the path to the executable binary (C:\Users\michael\Downloads\chromedriver_win32) into the Environment Variable "Path". However, when...

Is there a non-static ClassInitialize alternative in MSTest?

c#,visual-studio-2012,mstest,selenium-chromedriver
I'm using Visual Studio 2012 test framework (I guess that's MSTest). I have some code that I need to run once and only once before the various testmethods run. ClassInitialize seemed perfect until I learned that it must be static. First, I have an instance variable for ChromeDriver: private ChromeDriver...

Selenium opens up chrome not signed into Chrome account

google-chrome,selenium,webdriver,selenium-chromedriver
I have recently been working with Selenium WebDriver. I am also working specifically with chromedriver. Whenever I open up a new chrome window (driver.get(url)), Chrome starts up in a completely default state, instead of the state it would open up in if I just opened a new window from my...

Cannot assign an inst variable in Switch “--user-data-dir” in Selenium Wedriver Chrome

ruby,google-chrome,selenium,selenium-webdriver,selenium-chromedriver
I have the following code and i want to create a user Directory with the name 'mydir' where chrome should output console logs, but wat happens is it creates a directory #{dir} instead. I also tried using CONST Variables still the same result. Can some help me out? require "selenium-webdriver"...

Selenium grid with Chrome driver (WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property)

java,selenium,selenium-chromedriver,selenium-grid2
I am trying to get my Selenium Grid running on Chrome driver. At first I started hub and node: java -jar selenium-server-standalone-2.45.0.jar -role hub java -jar selenium-server-standalone-2.45.0.jar -role node -hub http://localhost:4444/grid/register than I launch my test: public class ChromeDriverTest { private WebDriver driver = null; String BaseURL,NodeURL; @Before public void...

PDF is not being opened in Chrome started by Selenium

java,google-chrome,pdf,selenium,selenium-chromedriver
I am using Selenium and ChromeDriver 2.43.1 with the latest Chrome (Version 42.0.2311.135 at the time the quetion was asked). My web application generates a PDF. It is being sent with the correct MIME type and it also correctly opens in the Chrome PDF viewer. However when I try to...

Chrome .Net Ui Automation - Automatic Sign on to Browser - AutomationElement Invoke appears to invoke with no result

c#,google-chrome,selenium-chromedriver,microsoft-ui-automation
I would like to automatically sign into Chrome on Windows, the Selenium part is done but now there is a Window that needs to be automated. The invocation of the Link data push button. It appears I find the right element with my code and it does attempt an invoke...

Chromedriver basic authentication alert pop up not detected

webdriver,basic-authentication,selenium-chromedriver
I am having issues detecting Basic Auth alert with ChromeDriver 2.14 (Chrome 40.0.2214.111 (64-bit)); I am instantiating the driver like this: new ChromeDriver(DesiredCapabilities.chrome()); and then navigate and wait for pop up: driver.navigate().to(URL); WebDriverWait wait = new WebDriverWait(driver, 10); Alert alert = wait.until(ExpectedConditions.alertIsPresent()); alert.authenticateUsing(new UserAndPassword("test", "test")); But it times out after...

WebDriverException: Message: unknown error: DevTools returned unknown type:service_worker

python,google-chrome,selenium,selenium-webdriver,selenium-chromedriver
I'm seeing the following error in a python selenium automated test when running in chrome. The failure is with closing the window, on driver.close(). The test is passing without error when I run in Firefox. I'm using ChromeDriver 2.10.267517. WebDriverException: Message: unknown error: DevTools returned unknown >type:service_worker ...

Prompt_for_download is still appearing after setting false in prefs

google-chrome,protractor,selenium-chromedriver
I have this below config and already set prompt_for_download to false but for some reason, when I run the test, prompt for download dialogue is keep appearing. Am I doing something wrong? For download code, I'm following solution from here and ChromeDriver 2.14. Thanks. capabilities: { 'browserName': 'chrome', 'chromeOptions': {...

How do we make the Selenium WebDriver wait for a few seconds?

selenium,selenium-webdriver,selenium-chromedriver
I know this question has been answered before but none of the solutions seem to work for me.I have been on this for an entire day.I have tried all of the below: 1)wait(1000); 2)driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS); 3)driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS); Also, when I am executing my code on debug mode (Debug as JUnit...

unable to open chrome using webdriver in javascript

javascript,google-chrome,firefox,selenium,selenium-chromedriver
I got a very weird problem when trying out webdriverjs on my windows machine and would like your help or suggestion on this one. I follow the instruction online, first npm install selenium-webdriver, then download chromedriver and configure its path. Before proceed to testing I double check the installation, chrome...

webdriver exception chrome not reachable

selenium-webdriver,webdriver,selenium-chromedriver,chrome-web-driver
I am running selenium test cases in a ubuntu server which basically runs testcases in both firefox and chrome. Firefox launches and test cases run successfully but chrome throws exception: *****below is the snippet of the stacktrace:***** Starting ChromeDriver (v2.8.240825) on port 21549 PAC support disabled because there is no...

Protractor redirects and times out immediately after loading page

selenium,protractor,selenium-chromedriver,angularjs-e2e
I'm trying to write some e2e specs for an AngularJS application. I have one Jasmine spec in test/e2e/test_spec.js: describe('basic functionality', function() { it('loads the home page', function() { browser.get('/'); expect(browser.getCurrentUrl()).toMatch(/localhost/); }); }); Terminal output when the spec is run: > protractor protractor.config.js Using the selenium server at http://localhost:4444/wd/hub [launcher] Running...

Launch Watir/Selenium Chrome driver binary from an arbitrary location

selenium,watir,selenium-chromedriver
I want to use Watir to start a chrome for an older version of chrome, say /Application/Google Chrome 30.app Here's a ref link saying chromedriver expects Chrome install at specific location: Mac /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome Here's a ref link for setting up Chrome executable in a non-standard location ChromeOptions options...

Is it possible to run an incognito with normal Chrome browser instance with Protractor?

google-chrome,protractor,selenium-chromedriver
I need to run test in two browsers with the same view but logged with different users. As the server is changing the cookie and logging out the first user because of the shared cookie between multiple windows in Chrome I cannot run the test. So, I wonder if it...

Sporadic test failures due to unknown error while taking screenshot in Chromedriver

selenium-webdriver,selenium-chromedriver
We are starting to get sporadic test failures when running in Chrome. I would say this happens 3 out of every 10 tests runs. I have no idea why this is occurring or how to fix it. Any help is appreciated. Below is the stack trace error we see. org.openqa.selenium.WebDriverException:...

c# - chromedriver - ignore-certificate-errors

c#,selenium,selenium-webdriver,selenium-chromedriver
I'm trying to use ChromeDriver 2.4.226107 with Selenium 2.45, Google Chrome 42.0.2311.135, Visual Studio 2012, and .NET 4.5. My little test app compiles and runs, but when it launches a new Chrome window, I get this error: "You are using an unsupported command-line flag: --ignore-certifiate-errors. Stability and security will suffer."...

Cannot make a simple find element with a cssSelector using Selenium WebDriver

selenium,selenium-webdriver,webdriver,selenium-chromedriver
I've been trying to do a click on a button, in various manners without success. Every time i tried, i always get this stack error Driver info: driver.version: EventFiringWebDriver at sun.reflect.GeneratedConstructorAccessor21.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204) at...