selenium-chromedriver

Having issues with click when using new version of chromedriver, chrome and selenium in c#

筅森魡賤 提交于 2021-01-29 07:53:54
问题 I am using latest chrome 77.0.3865.90 I have tried chromedriver versions - 77.0.3865.4000, 76.0.3809.* The code is in C# I am finding an element on the page and doing click on it. This used to work fine and I think after new chrome browser update (to 77.0.3865.90) i am getting this error for clicks : unknown error: failed to parse value of getElementRegion\n (Session info: chrome=77.0.3865.90)"} I tried using multiple chromedriver versions as above nothing seems to work. WebDriverWait wait =

Loop only works for elements in a screen not after scrolling

我的未来我决定 提交于 2021-01-29 07:18:22
问题 I have written a loop to get the links to all the products in Poshmark Closet. Now how Poshmark works is it shows 48 products and after that, we need to scroll to load the next products. Please check the following code. It only works for 48 products and after scrolling, it does not work on those products. The program ends without any error! def loop(): n = 0 container = driver.find_elements_by_css_selector('.tile.col-x12.col-l6.col-s8.p--2') links = [] while n < 20: # I used while loop to go

Why chrome doesn't show save password or remember password option while running automation script?

坚强是说给别人听的谎言 提交于 2021-01-29 05:51:09
问题 While automating with selenium if a username and password is entered why doesn't chrome browser show the option to save credentials as it does in regular practice. 回答1: As mentioned in previous answer, new instance of WebDriver opens fresh browser window, without previous cookies etc. What could you do is: When you first start WebDriver and open login page, using selenium enter credentials, make sure you check "remember details" checkbox is present. Now once you are logged in, you can get

Downloading PDF using Selenium Java not working in Chrome

随声附和 提交于 2021-01-29 05:41:35
问题 I have written the following code to disable the Chrome PDF viewer so that the PDF file can be downloaded automatically in the C:\downloads folder when the link is opened in Chrome. ChromeOptions options = new ChromeOptions(); Map<String, Object> prefs = new HashMap<>(); prefs.put("download.default_directory", "C:\\downloads"); prefs.put("download.prompt_for_download", false); prefs.put("plugins.always_open_pdf_externally", true); options.setExperimentalOption("prefs", prefs); options

How to retrieve data from the popup after clickable element trigger with WebDriverWait in Selenium Python?

不羁岁月 提交于 2021-01-29 05:20:53
问题 I need to scrape the image src from this popup. I have coded that but getting "AttributeError: 'NoneType' object has no attribute 'findElements'. Here is the code. from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options from chromedriver_py import binary_path import time from time import sleep url =

which chromedriver version supports electron app?

我的未来我决定 提交于 2021-01-28 20:50:19
问题 I try to run electron app using the following code: @Test public void testElectron() { System.setProperty("webdriver.chrome.driver", chromeDriverPath); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setBinary(this.electronPath); WebDriver driver = new ChromeDriver(chromeOptions); } But I get the following error: Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 37592 Only local connections are allowed. Please

which chromedriver version supports electron app?

喜夏-厌秋 提交于 2021-01-28 19:56:44
问题 I try to run electron app using the following code: @Test public void testElectron() { System.setProperty("webdriver.chrome.driver", chromeDriverPath); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setBinary(this.electronPath); WebDriver driver = new ChromeDriver(chromeOptions); } But I get the following error: Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 37592 Only local connections are allowed. Please

Selenium IDE not capturing the popup/ Alerts

这一生的挚爱 提交于 2021-01-28 19:46:02
问题 I am using selenium IDE to record the commands. I need to test the red rout for login screen. But Selenium is not recognizing the alert coming from the application. Highlighted in bold alert message is not captured by the selenium IDE. selenium.open("http://192.168.132.244:8080/SampleApp/"); assertEquals("SampleApp", selenium.getTitle()); selenium.type("name=userame", "NoUser"); --USER NAME selenium.type("name=password", "Password1"); --Password selenium.click("css=input[type=\"image\"]"); -

Problem Selecting Okay Button with Python and Selenium

為{幸葍}努か 提交于 2021-01-28 19:33:55
问题 So I have an issue, where I am unable to select the okay from an alert message that pops up in a new window. I don't really know what to make of it and really just want to accept the alert as all of the work has been done to ensure that the removal is processed. The code for the overall script can be found here: https://github.com/Richard-Barrett/ITDataServicesInfra/blob/master/Python/Skyward/Administration/remove_sec_groups_inactive_users.py Code: #!/bin/usr/env python # ====================

ChromeDriver is assuming that Chrome has crashed when passing profile arguments [duplicate]

别来无恙 提交于 2021-01-28 18:51:17
问题 This question already has answers here : How to open a Chrome Profile through Python (2 answers) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed with ChromeDriver and Selenium in Python (1 answer) Closed 2 years ago . If any Chrome processes are running and the following code is run, Stack Overflow will NEVER load: options = webdriver.ChromeOptions() options.add_argument("user-data-dir=C:\\Users\\RvBVakama\\AppData\\Local\\Google\\Chrome\