selenium-webdriver

Chrome arguments doesn't work

…衆ロ難τιáo~ 提交于 2020-01-21 13:37:08
问题 anybody know why chrome arguments does't work? import java.net.MalformedURLException; import java.net.URL; import java.util.Arrays; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; public class testowa { public static void main(String[] args) throws InterruptedException { DesiredCapabilities capability = DesiredCapabilities.chrome(); capability.setCapability("chrome.args", Arrays.asList("--disable

using http proxy with selenium Geckodriver

醉酒当歌 提交于 2020-01-21 12:26:07
问题 I tried a few things but non of them worked. Anyone have a working example of using a HTTP proxy with Geckodriver for Selenium 3? I am using Java bindings Here is what I tried DesiredCapabilities capabilities = DesiredCapabilities.firefox(); Proxy proxy = new Proxy(); proxy.setHttpProxy("proxyip:proxyport"); capabilities.setCapability("proxy", proxy); System.setProperty("webdriver.gecko.driver", "C:\\geckodriver-v0.16.1-win64\\geckodriver.exe"); WebDriver driver = new FirefoxDriver

MSEdgeDriver (Chromium) does not work after version 79.0.309.0

十年热恋 提交于 2020-01-21 10:20:11
问题 I'm using Microsoft Edge Webdriver (Chromium) with Python3 in my script. The webdriver configuration is as follows: driveroptions = Options() driveroptions.add_argument('--inprivate') driveroptions.add_argument('--disable-infobars') driveroptions.add_argument('--start-maximized') driveroptions.add_argument('--auto-open-devtools-for-tabs') driveroptions.add_argument('--user-data-dir=D:\\Selenium_Edge_Chromium_UserData') driveroptions.binary_location = "C:\\Users\\Administrator\\AppData\\Local\

Timed out waiting 45 seconds for Firefox to start

我怕爱的太早我们不能终老 提交于 2020-01-21 05:32:09
问题 I am using ubuntu 16.04 Timed out waiting 45 seconds for Firefox to start. Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:31.527Z' System info: host: 'supranimbus-Inspiron-3250', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.10.0-40-generic', java.version: '1.8.0_151' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.XpiDriverService.waitUntilAvailable(XpiDriverService.java:131) at org.openqa.selenium.firefox

How to click on the first result on google using selenium python

≯℡__Kan透↙ 提交于 2020-01-21 03:41:12
问题 I am trying to click on the first result on the google result. Here is my code where I am entering chennai craiglist which is read from csv file. So I am sure the first link that come in the organic result will be chennai.craiglist.org. But I am quiet not sure about how to do this. from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException import unittest, time, re

Webdriver - HTTP authentication dialog

白昼怎懂夜的黑 提交于 2020-01-20 02:26:11
问题 I have a very simple selenium-webdriver script. I would like to do HTTP authentication using webdriver. Script: WebDriver driver = new FirefoxDriver(); driver.get("http://www.httpwatch.com/httpgallery/authentication/"); driver.findElement(By.id("displayImage")).click(); Thread.sleep(2000); driver.switchTo().alert().sendKeys("httpwatch"); Issue: driver.switchTo().alert().sendKeys("httpwatch"); throws org.openqa.selenium.NoAlertPresentException: No alert is present Question: Does Webdriver find

Webdriver - HTTP authentication dialog

痞子三分冷 提交于 2020-01-20 02:26:08
问题 I have a very simple selenium-webdriver script. I would like to do HTTP authentication using webdriver. Script: WebDriver driver = new FirefoxDriver(); driver.get("http://www.httpwatch.com/httpgallery/authentication/"); driver.findElement(By.id("displayImage")).click(); Thread.sleep(2000); driver.switchTo().alert().sendKeys("httpwatch"); Issue: driver.switchTo().alert().sendKeys("httpwatch"); throws org.openqa.selenium.NoAlertPresentException: No alert is present Question: Does Webdriver find

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 75 using Selenium

瘦欲@ 提交于 2020-01-19 18:07:05
问题 I want to open the Chrome browser it displays error. import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Homepage { public static void main(String[] args) { // TODO Auto-generated method stub //Create Driver object System.setProperty("webdriver.chrome.driver", "C:\\Workdirectory\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); } } Here I am expecting My Chrome Browser but it throws an error like Starting ChromeDriver 75.0.3770.8

“TestNG No tests found. Nothing was run” while executing automated tests using Selenium through TestNG

依然范特西╮ 提交于 2020-01-19 17:38:17
问题 I want to know what exact software should I install before I run my automation project. Selenium web driver, selenium java, testNG, junit was installed but there are some problems with that also. 1. Selenium java file doesn't have more JAR files like people shows in their video tutorials. 2. When I' going to run my project as testNG, eclipse said windows firewall has blocked some features of this app. 回答1: This error message... [TestNG] No tests found. Nothing was run ...implies that TestNG

“TestNG No tests found. Nothing was run” while executing automated tests using Selenium through TestNG

你说的曾经没有我的故事 提交于 2020-01-19 17:37:05
问题 I want to know what exact software should I install before I run my automation project. Selenium web driver, selenium java, testNG, junit was installed but there are some problems with that also. 1. Selenium java file doesn't have more JAR files like people shows in their video tutorials. 2. When I' going to run my project as testNG, eclipse said windows firewall has blocked some features of this app. 回答1: This error message... [TestNG] No tests found. Nothing was run ...implies that TestNG