selenium-chromedriver

Chrome driver is not working on azure web apps

£可爱£侵袭症+ 提交于 2019-12-08 05:40:28
I have used .NetCore2 App and try to takes the screenshot of given URL. It works perfect on local but After deploy to Azure have problems on create Webdriver. at OpenQA.Selenium.DriverService..ctor(String servicePath, Int32 port, String driverServiceExecutableName, Uri driverServiceDownloadUrl) ↵ at OpenQA.Selenium.Chrome.ChromeDriverService..ctor(String executablePath, String executableFileName, Int32 port) ↵ at OpenQA.Selenium.Chrome.ChromeDriver..ctor(String chromeDriverDirectory, ChromeOptions options) ↵ at SceenshotApp.Service.Screenshot.TakeScreenshot(String url, Int32 width, Int32

How to run any (Chrome, Firefox, PhantomJS) browser in selenium server standalone?

烈酒焚心 提交于 2019-12-08 05:00:50
问题 My Question or Problem = I cannot run any browser with selenium remote server, how do I fix this? My environment: Operating System Windows 10 I'm using eclipse(Version: Neon Release (4.6.0)) with java 1.8 selenium Web driver 3.0.0 selenium-server-standalone-3.0.1.jar I start selenium-server-standalone in cmd. ("selenium-server-standalone-3.0.1.jar" the file is stored in the utilities folder on my c drive ) C:\Windows\system32> cd\ C:\> cd utilities C:\Utilities> java -jar selenium-server

any way to catch a WebElement without using XPath or CssPath

痞子三分冷 提交于 2019-12-08 05:00:32
I am very new at Java and Selenium so my apologies in advance if my question sounds a bit primary. I am using Selenium and Java to write a test. The issue is the application I'm testing is not finished yet and its developers change the code daily. When I use XPath or CssPath it may change after a while, so I have to go through all my test program and change those XPathes or Css ones. Is there any other way that I can have access to a WebElement without using Css or XPath? There are several different ways of selecting a webelement in Selenium: Class Name (ie. By.className("content") => <div

Google 59 no longer supports embedded credentials

与世无争的帅哥 提交于 2019-12-08 03:49:33
问题 I am a QA analyst with some JS knowledge and am using Selenium Webdriverjs for some automation. The site requires username/password, so it was designed using the embedded credentials to login (https://user:password@address.com). However, with the recent update to Chrome 59 this week, this ability is no longer allowed, even as a configuration change. Does anyone know how to handle the authentication box that appears when you reach a site that requires it? I have tried treating it as an alert

Selenium shows java.net.SocketException: Connection reset

妖精的绣舞 提交于 2019-12-08 03:33:06
问题 I have searched for the solution but I have not found the solution I always get this error codigo : public static void main(String [] args) { System.setProperty("webdriver.chrome.driver","C:\\Users\\Ofima\\workspace\\OfimaWeb\\chromedriver.exe"); WebDriver driver= new ChromeDriver(); driver.get("http://ofimawebbeta.ofima.com/"); driver.manage().window().maximize(); driver.getTitle(); } Error : Starting ChromeDriver (v2.9.248315) on port 41785 ene 19, 2018 9:48:49 AM org.openqa.selenium.remote

Python selenium webdriver Chrome - Chrome is being controlled by an automated software

社会主义新天地 提交于 2019-12-08 03:11:58
问题 I am using selenium webdriver and creating a chrome driver instance. When i try to do scroll down and scroll up,I am getting the following error message. Further I can see an error message 'Chrome is being controlled by an automated software'. Its annoying to see this error though I am not able to change any settings in Chrome browser for allowing automation. from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected

org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities

时间秒杀一切 提交于 2019-12-08 02:48:14
问题 Hub starting command : java -jar selenium-server-standalone-3.11.0.jar -role hub Node starting command : java -Dwebdriver.chrome.driver=/Users/alina/Selenium/chromedriver.exe -jar selenium-server-standalone-3.11.0.jar -role webdriver -hub http://192.168.100.4:4444/grid/register/ Environment Details (updated from comments) : Selenium 3.11.0, Chrome 66, ChromeDriver 2.38 import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium

Is there a way to determine if an element is clickable in Chrome Browser using Selenium and Watir?

二次信任 提交于 2019-12-08 02:47:06
问题 As I understand it, this question is really only relevant when performing web test automation using Chrome browser due to the manner in which a click event is implemented with Selenium Webdriver and Chromedriver. To preface, I use and am aware of finding an element through the use of the Watir element function "present?", which as I understand is essentially a combination of "visible?" and "exists?". I could also, at need find an element with Webdriver element functions to identify if an

Python Webscraping Selenium and BeautifulSoup (Modal window content)

↘锁芯ラ 提交于 2019-12-08 02:46:11
问题 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

Cucumber @Before hook runs twice @After once

[亡魂溺海] 提交于 2019-12-08 02:34:29
问题 to all. Curently writing a little BDD Test automation framework, using Java11+Junit5+Cucumber+Selenium, build tool: Graddle. Created a little test for validating Google title. When starting test, using Test task in Graddle or running CucumberRunner class, in both cases getting the same result: two times @Before method is executed, once @After method is executed and one browser windows is staying open. After added one more test, the same situation, only 4 browsers are opened, 2 of them are