selenium-chromedriver

How to run a Chromium Browser with Selenium?

社会主义新天地 提交于 2020-01-10 05:19:34
问题 Is it possible to run a Selenium test in Chromium Browser (not Google Chrome Browser)? My GoogleDrive location: My Chromium location: FYI: I am using Java My code ( for the moment I am run FirefoxDriver(gecko): import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class MainClass { public static void main (String[] args){ System.setProperty("webdriver.gecko.driver", "C:\\Users\\User\\IdeaProjects\\testselenium\\drivers\\geckodriver.exe"); WebDriver

opening chrome in selenium issue

杀马特。学长 韩版系。学妹 提交于 2020-01-10 05:16:24
问题 I'm currently taking my first automated test class and the instructor has us creating a program in Eclipse after loading Selenium and create a step in the program to look at an executable to bring up chrome then designate a website to check. It looks like i am stuck in a loop? Here is the program: java program Here is the result: program result any and all help would be appreciated. Thank you for your time. 回答1: I think this is what you want This code is to open the default browser and go to

Download file at custom path using Selenium WebDriver

跟風遠走 提交于 2020-01-09 23:33:12
问题 I am new to selenium and i would like to download file with selenium chrome web driver in specific custom folder. In default the file is downloading in browser specified download path. Any one suggest the best solution for downloading file in custom path in C# Selenium. 回答1: Hope it will be help for you!! var chromeOptions = new ChromeOptions(); chromeOptions.AddUserProfilePreference("download.default_directory", "Your_Path"); chromeOptions.AddUserProfilePreference("intl.accept_languages",

WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally with ChromeDriver Chrome and Selenium on debian server

雨燕双飞 提交于 2020-01-09 11:58:06
问题 i try to run the selenium webdriver on a debian server 8.11 and get an error. Java: java version "1.7.0_221", OpenJDK Runtime Environment (IcedTea 2.6.18) Webdriver: ChromeDriver (v2.9.248304) Sourcecode: from selenium import webdriver from pyvirtualdisplay import Display display = Display(visible=0, size=(800, 800)) display.start() co = webdriver.ChromeOptions() co.add_argument("--user-data-dir=profile") browser = webdriver.Chrome('/usr/local/bin/chromedriver', options=co) browser.get(

selenium.common.exceptions.WebDriverException: Message: unknown error: unable to discover open pages using ChromeDriver through Selenium

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-09 05:41:09
问题 I am a newbie to selenium just trying to learn. When tried opening Chrome browser through ChromeDriver I got the below error: Traceback (most recent call last): File "selenium_practise1_chrome.py", line 5, in <module> driver = webdriver.Chrome() File "C:\Users\kulokesh\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 75, in __init__ desired_capabilities=desired_capabilities) File "C:\Users\kulokesh\AppData\Local\Programs\Python\Python36

WebDriverException: unknown error: Runtime.executionContextCreated has invalid 'context': while initializing Chrome browser

北慕城南 提交于 2020-01-08 18:01:07
问题 I'm trying to get started using selenium and have downloaded a chrome driver and put into my classpath. I'm just trying to get the title right now to see if I can get it to work. Code currently looks like this: import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Flows { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "/Users/mn/Desktop/project/turv/src/main/chromedriver"); WebDriver driver = new ChromeDriver

How to disable push-notifications using Selenium for Firefox and Chrome?

倾然丶 夕夏残阳落幕 提交于 2020-01-08 17:21:06
问题 I want to disable the notification when I launch Firefox browser through Selenium Webdriver. I found this answer, but it's deprecated and does not work for me on Firefox (it works perfectly on Chrome though). I'm use this dependency for my pom.xml : <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.11.0</version> </dependency> 回答1: If your usecase is to disable the notification following are the options : To disable Push Notification in

Selenium WebDriverException: unknown error: call function result missing 'value' while calling sendkeys method

霸气de小男生 提交于 2020-01-08 13:25:00
问题 When trying to call Sendkeys method in selenium webdriver it is displaying below error: Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value' (Session info: chrome=65.0.3325.146) (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7600 x86_64) (WARNING: The server did not provide any stacktrace information) Selenium Jarversion: 3.10.0 回答1: The error says it all : Exception in

Selenium WebDriverException: unknown error: call function result missing 'value' while calling sendkeys method

做~自己de王妃 提交于 2020-01-08 13:24:21
问题 When trying to call Sendkeys method in selenium webdriver it is displaying below error: Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value' (Session info: chrome=65.0.3325.146) (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7600 x86_64) (WARNING: The server did not provide any stacktrace information) Selenium Jarversion: 3.10.0 回答1: The error says it all : Exception in

How to Schedule Selenium Web Drivers Tests in C#

蓝咒 提交于 2020-01-07 09:25:09
问题 In my development project, We implemented regression test cases using selenium webdriver using c#. I would like to schedule of Regression tests once in a day. Tools used shows below. Selenium Webdriver on C# Visual Studio 2017 NUnit test framework Please suggest any other solution. Thanks in advance. 回答1: Use task scheduler; Create a batch file with the command to execute the tests (e.g ..\nunit.exe ..\seleniumTests.cs) Open 'Task Scheduler' Create a task with the time/frequency as the