selenium-chromedriver

EOFError, what happen to my minitest selenium test? how to fix it?

大城市里の小女人 提交于 2019-12-11 01:45:17
问题 After my ubuntu updates, my minitest selenium test got an error, saying: EOFError: EOFError: end of file reached and it opens many blank google chrome windows as feature test total count . my Ubuntu 16.04 updates was ( yesterday everything works fine until the system made an update ): Commandline: aptdaemon role='role-commit-packages' sender=':1.105' Upgrade: snap-confine:amd64 (1.0.42-0ubuntu3~16.04.1, 1.0.43-0ubuntu1~16.04.1), google-chrome-stable:amd64 (53.0.2785.143-1, 54.0.2840.59-1),

WaitForElementClickable/ Visible - Selenium C#

我的未来我决定 提交于 2019-12-11 00:50:23
问题 I need to implement & modify my current method to do both matters: Waiting for element of being visible - (which is currently implemented but it still uses ExpectedCondition which is obsolete and might be changed) Waiting for element of being clickable - (When my test are running, it's face a problems with "loading circles", I'm pressing the button and before window is loaded there is loader which takes for 1 to 4 seconds and then it disappears. My goal is to force Selenium to wait "XXX" time

Handling pagination on website using input buttons

你说的曾经没有我的故事 提交于 2019-12-11 00:45:26
问题 In trying to scrape this website using selenium. I have the code working but it currently only scrapes the first page. The page uses input buttons as a way to navigate through pages so I thought to click each button one by one but it doesn't work, has anyone got any other way to handle navigation for this type of pagination? import requests from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver.chrome.options import Options options = Options()

Close download bar

混江龙づ霸主 提交于 2019-12-11 00:34:14
问题 I am using Java and Selenium to write a test. Somewhere in my test, I download a file but then need to click on a button under the download bar which appears at the bottom of the chrome browser page. I search a lot but the only solution was here which is not my case as I don't have a scroll. I also use: action.sendKeys(Keys.CONTROL+ "j").build().perform(); action.keyUp(Keys.CONTROL).build().perform(); Thread.sleep(500); ArrayList<String> tabs2 = new ArrayList<String> (driverChrome

Java Selenium - How to Click a Button that has no ID or ng-class in AngularJS based page

浪尽此生 提交于 2019-12-11 00:33:51
问题 The following code I've used is not clicking the button and showing the error message. WebElement clickNextButton = webDriver.findElement(By.cssSelector("button[ng-class='btn-success']")); clickNextButton.click(); Error message shows "no such element: Unable to locate element. {"method":"css selector","selector":"button[ng-class='btn-success']"} I've also tried the following code segments without success: WebElement clickNext1 = webDriver.findElement(By.cssSelector("button[ng-class='pccCTRL

How to NOT wait for page load to complete in Selenium by using ChromeDriver? (mobile)

你说的曾经没有我的故事 提交于 2019-12-11 00:07:33
问题 I am using ChromeDriver to write tests for Android Chrome browser. I use C#. My goal is to use few chrome tabs in parallel. When one page stuck by loading some data or by doing some calcaultion I want to switch to another tab and do another tests, and time to time do some checks: is previous page already loaded, and if yes do another work on it. Issue: When you set driver.Url or Click on element which load another page your thread stuck until whole page get loaded. It is not ok for me. But I

How to address “You are using an unsupported command-line flag: --ignore-certificate-errors, Stability and security will suffer” in HeadlessChrome

家住魔仙堡 提交于 2019-12-10 23:38:35
问题 I'm trying to run chrome headless using selenium in C# but I keep getting this error: You are using an unsupported command-line flag: --ignore-certificate-errors, Stability and security will suffer. I'm using Chrome: 61 ChromeDriver: 2.3 Selenium: 3.6 .Net 4.5 My code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using OpenQA

fetch all links under/in a specific class-selenium webdriver (java)

落花浮王杯 提交于 2019-12-10 23:08:22
问题 Is there a way to fetch all the links under a specific class? The thing is, iI am writing a test that requires me to click on a random item/product but if a create a list of all the links through By.tagName("a") , It'll fetch ALL the links on the page. To be more exact, consider this website, Now I want to randomly choose from pret , summer sale , accessories , bt lawn'16 , sale , lookbook or after clicking on summer sale , I want to randomly click on one of the products under it. any idea

Google chrome 29.0 is not working with webdriver

自古美人都是妖i 提交于 2019-12-10 21:52:59
问题 I was trying to load google chrome browser with watir-webdriver, but while invoking any URL in the browser it is throwing following error Selenium::WebDriver::Error::UnknownError: Unknown command 'WaitForAllTabsToStopL oading'. Options: AcceptOrDismissAppModalDialog, ActionOnSSLBlockingPage, Activa teTab, AddBookmark, AddDomEventObserver, AppendTab, ApplyAccelerator, BringBrows erToFront, ClearEventQueue, CloseBrowserWindow, CloseTab, CreateNewAutomationPro vider, DeleteCookie,

Selenium newer Chrome cannot disable browser notification (Tried other solns)

别说谁变了你拦得住时间么 提交于 2019-12-10 19:56:55
问题 I know this is an old question, and I've tried answers from a few posts such as Disable Chrome notifications (Selenium) Unfortunately none worked, the browser notification popup still comes and interrupts my simulations. My Chrome version is 75.0.3770.100 (Official Build) (64-bit), running on MacOS. Edit: After this question was marked as a duplicate of How to disable push-notifications using Selenium for Firefox and Chrome?, I've tried the solutions, but it still did not work for me. String