selenium-chromedriver

Chrome driver is not working on azure web apps

[亡魂溺海] 提交于 2019-12-23 02:31:18
问题 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,

Selenium Chromedriver launches Chrome, but doesn't open website (new Chromedriver, same old issue)

删除回忆录丶 提交于 2019-12-23 02:19:37
问题 I am having trouble using Selenium Chromedriver on Windows 7. To display the problem, I've boiled it down to a simple script to simply launch the New York Times website: from selenium import webdriver # --LOCATIONS -- # The Chrome app: # C:\Program Files (x86)\Google\Chrome\Application\chrome.exe # The Chrome binary: # C:\Python27\Scripts\chromedriver.exe chromedriver_path = "C:\Python27\Scripts\chromedriver.exe" driver = webdriver.Chrome(executable_path=chromedriver_path) driver.get('https:/

Why Selenium always create temporary Firefox Profiles using Web Driver?

蹲街弑〆低调 提交于 2019-12-23 02:18:21
问题 Why Selenium always create temporary Firefox Profiles using Web Driver though I told it to use a existing one ? According to this answer it is not possible to stop Selenium from creating temporary Firefox Profiles using Web Driver. But with chromedriver I can achieve this. So why it is different for Firefox. I checked the FirefoxProfile.cs of Selenium repo and found the following code snipet is used to copy profile--- public void WriteToDisk() { this.profileDir = GenerateProfileDirectoryName(

Protractor does not run after installation

只谈情不闲聊 提交于 2019-12-23 01:56:05
问题 After installation npm i protractor -g and running webdriver-manager update as in Tutorial, the next command webdriver-manager start throws errors: $ webdriver-manager start seleniumProcess.pid: 63737 Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openqa/grid/selenium/GridLauncher : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:700) at java.security.SecureClassLoader

Getting rid of chromedirver console window with pyinstaller

倾然丶 夕夏残阳落幕 提交于 2019-12-23 01:06:07
问题 I'm using chromedriver in headless mode . I compile the script using pyinstaller as one exe file. Everything works fine, except that I get the following console window whenever I open a chrome page: I've tried the options --windowed alone, --noconsole alone, --windowed and --noconsole together but I still get this window. How can I get rid of it? 回答1: I was able to find the following answer and it's working perfectly for me: To avoid getting console windows for chromedriver, open the file

How to enable ChromeDriver logging in Ruby Capybara with Selenium?

旧时模样 提交于 2019-12-22 20:21:32
问题 I have tried to register Selenium chrome driver in ruby Capybara. But unfortunately, I didn`t find any information about enabling logging. I used options with added perfLoggingPrefs: {enableNetwork: true} and faced issue that i should enable logging. Does anyone know how can I enable logging for ChromeDriver in Ruby/Capybara? So here is my code now: Capybara.register_driver(:selenium_mobile) do |app| options = Selenium::WebDriver::Chrome::Options.new options.add_emulation(device_name: 'iPhone

Selenium Click not working - Chrome Driver - Version 73.0.3683.68

落爺英雄遲暮 提交于 2019-12-22 18:43:33
问题 I just updated my Chrome Driver to the latest version - 73.0.3683.68 and ever since my "Click" Function is not working properly (it does work at times, but not everytime). Chrome version: Version 73.0.3683.75 (Official Build) (64-bit) I code with C#. The biggest problem is that Selenium acts as if the "Click" worked properly and moves on to the next function and there it fails because the element is not present on the screen yet. It should be noted that prior to clicking on the element, we do

Connecting Selenium WebDriver to an existing browser session

寵の児 提交于 2019-12-22 17:41:01
问题 I am working with selenium and I would like to attach a webdriver instance if an existing browser session (for me Chrome) currently exists. I don't want to open a new Browser window/session. I have googled and seen, that there are some ways to do this with the description on these sites: Reuse existing Browser Session by extending RemoteWebDriver Basic Stuff for ChromeDriverService I'am using ChromeDriver 2.29 in the latest version. My code is looking now as follows: public static void main

Have ChromeDriver features been deprecated?

ぐ巨炮叔叔 提交于 2019-12-22 17:15: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

Selenium with chromedriver gives different results based on “headless” argument

怎甘沉沦 提交于 2019-12-22 12:24:39
问题 I have been playing around with Selenium + Chromedriver and I noticed I get different results based on if headless is enabled or disabled. After some investigation I found out that "headless" does not include the Accept-Language header. Is there anyway to manually add this in the headers? 回答1: That's what Google chrome does. One way around it would be to use a proxy and modify the headers for you. Or you can use the Firefox driver as that driver does not send different headers when using the