selenium-chromedriver

Unable to detect Alert using ChromeDriver?

孤街醉人 提交于 2021-02-19 09:07:20
问题 I am currently doing some automation testing using Selenium WebDriver . The issue I am facing is that my script is unable to detect alerts. Scenario: I open the application, pass my credentials and press Confirm. On Confirm, the application opens with an Alert. Screenshot of the Alert Shown below: I am using Java, Selenium WebDriver, ChromeDriver, and testng. i am using the codes shows below : uk.setLogin("", ""); uk.getLogin(); WebDriverWait wait = new WebDriverWait(Driver, 10); wait.until

Unable to detect Alert using ChromeDriver?

。_饼干妹妹 提交于 2021-02-19 09:04:32
问题 I am currently doing some automation testing using Selenium WebDriver . The issue I am facing is that my script is unable to detect alerts. Scenario: I open the application, pass my credentials and press Confirm. On Confirm, the application opens with an Alert. Screenshot of the Alert Shown below: I am using Java, Selenium WebDriver, ChromeDriver, and testng. i am using the codes shows below : uk.setLogin("", ""); uk.getLogin(); WebDriverWait wait = new WebDriverWait(Driver, 10); wait.until

Chrome canary headless mode does not work on windows10

ぃ、小莉子 提交于 2021-02-19 04:16:50
问题 Google Chrome Canary does not work with headless on Windows. Chrome headless does not work on windows. The Error happens like following when I tried to execute below code. But it works on non-headless mode. I know Canary is unstable but I want to using it to learning about web advanced spec. This error caused by bug in canary? Or caused by my code? code: from selenium import webdriver from selenium.webdriver.chrome.options import Options op = Options() op.binary_location = "C:\\Users\

Chrome canary headless mode does not work on windows10

感情迁移 提交于 2021-02-19 04:14:53
问题 Google Chrome Canary does not work with headless on Windows. Chrome headless does not work on windows. The Error happens like following when I tried to execute below code. But it works on non-headless mode. I know Canary is unstable but I want to using it to learning about web advanced spec. This error caused by bug in canary? Or caused by my code? code: from selenium import webdriver from selenium.webdriver.chrome.options import Options op = Options() op.binary_location = "C:\\Users\

Python proxy authentication through Selenium chromedriver

青春壹個敷衍的年華 提交于 2021-02-19 03:10:18
问题 We tried for a few days to setup Proxy Authentication with selenium chromedriver in Python. We couldn't set ip up because Chrome throws a pop-up for authentication. Problem is that selenium can't switch to that window and so, can't type. The only solution that worked for us was using pyautogui which is a bad solution for us because we want to use the headless function. Here are all the methods we tried: driver.switch_to_window() driver.switch_to_active_element() driver.switch_to_alert()

Python proxy authentication through Selenium chromedriver

痞子三分冷 提交于 2021-02-19 03:06:10
问题 We tried for a few days to setup Proxy Authentication with selenium chromedriver in Python. We couldn't set ip up because Chrome throws a pop-up for authentication. Problem is that selenium can't switch to that window and so, can't type. The only solution that worked for us was using pyautogui which is a bad solution for us because we want to use the headless function. Here are all the methods we tried: driver.switch_to_window() driver.switch_to_active_element() driver.switch_to_alert()

How to address the error EGL Driver message (Error) eglQueryDeviceAttribEXT: Bad attribute using Selenium and Python

会有一股神秘感。 提交于 2021-02-19 01:24:39
问题 I'm getting random error messages from selenium, even though none of them are related to the exact web driver commands I'm running (not that I know of). This error isn't interrupting the program, it's just adding unwanted alerts (making my prints harder to read). Chrome version: 75.0.3770.100 (Official Build) (64-bit) Python version: 3.6.1 ChromeDriver version: 75.0.3770.140 I've added the following code already but I'm still getting the error. options.add_argument("--log-level=3") Error: gl

How do I disable WebRTC in Chrome Driver?

自闭症网瘾萝莉.ら 提交于 2021-02-18 18:53:57
问题 I want to disable WebRTC in Chrome Driver, but can't figure out how to do it. I tried like this (found this solution in some blog): capabilities.setCapability("chrome.switches", Arrays.asList( "--disable-webrtc-multiple-routes", "--disable-webrtc-hw-encoding", "--disable-webrtc-hw-decoding", "--disable-webrtc-encryption")); It doesn't work. Yes, I know there isn't something like "--disable-webrtc" there, but it's all I have found about WebRTC, I mean, I didn't find some other WebRTC

RSelenium: Scraping a dynamically loaded page that loads slowly

蹲街弑〆低调 提交于 2021-02-18 18:39:50
问题 I'm not sure if it is because my internet is slow, but I'm trying to scrape a website that loads information as you scroll down the page. I'm executing a script that goes to the end of the page, and waits for the Selenium/Chrome server to load the additional content. The server does update and load the new content, because I am able to scrape information that wasn't on the page originally and the new content shows up on the chrome viewer, but it only updates once. I set a Sys.sleep() function

Docker: using container with headless Selenium Chromedriver

♀尐吖头ヾ 提交于 2021-02-17 20:57:14
问题 I'm trying to link peroumal1's "docker-chrome-selenium" container to another container with scraping code that uses Selenium. He exposes his container to port 4444 (the default for Selenium), but I'm having trouble accessing it from my scraper container. Here's my docker-compose file: chromedriver: image: eperoumalnaik/docker-chrome-selenium:latest scraper: build: . command: python manage.py scrapy crawl general_course_content volumes: - .:/code ports: - "8000:8000" links: - chromedriver and