selenium-chromedriver

error “[PHPUnit\Framework\Exception] Undefined index: ELEMENT” when running codeception with WebDriver

允我心安 提交于 2019-12-13 04:38:44
问题 I am trying to get codeceptions acceptance tests running with WebDriver. My current setup is the following: Arch Linux Chromium: Chromium 75.0.3770.80 Arch Linux The included chromedriver-version: ChromeDriver 75.0.3770.80 (9a9aa15057b6b2cc0909bdcf638c0b65ecd516f2-refs/branch-heads/3770@{#948}) Selenium Server: Selenium server version: 3.14.0, revision: aacccce0 I am executing selenium by running env webdriver.chrome.driver="chromedriver" java -jar /usr/share/selenium-server/selenium-server

Geb test ignoring GebConfig.groovy file launched in IntelliJ

为君一笑 提交于 2019-12-13 04:11:29
问题 Running in IntelliJ IDEA. GebConfig.groovy is in /src/test/resources . I am using the Chrome driver. When I type System.setProperty("webdriver.chrome.driver", "my/path") inside my spec file, and I right click and select run, the test works, meaning it opens Chrome and loads the page. When I don't do that in the spec file, but just leave it in the GebConfig.groovy file, I get the error message "the page to the driver executable must be set". There's an air-gap, so I can't copy-paste; I'll type

How to get Selenium to operate two browser windows using only one driver selenium (using c# and chromedriver)?

坚强是说给别人听的谎言 提交于 2019-12-13 03:57:23
问题 I am attempting to control two browser windows via selenium using c# and a single chromedriver. The reason being that I need to share session details accross browser windows. The code that I have tried and failed with is below; var options = new ChromeOptions(); options.AddArguments("chrome.switches", "--disable-extensions --disable-extensions-file-access-check --disable-extensions-http-throttling --disable-infobars --enable-automation "); options.AddUserProfilePreference("credentials_enable

Python Selenium - highlight element doesn't do anything

我怕爱的太早我们不能终老 提交于 2019-12-13 03:56:09
问题 I'm trying to highlight elements on the following webpage using python selenium. I'm using the solution posted here: How can I highlight element on a webpage using Selenium-Python? but it doesn't produce any effect at all. I don't get any error message, it simply doesn't highlight the element I've selected. Has anybody faced the same problem? Here is my code: from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import

Chrome browser doesn't open in kiosk mode using Selenium WebDriver

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:49:19
问题 I am using Selenium WebDriver with chrome browser and for whatever reason, it doesn't open in kiosk mode. This used to work, not sure why it stopped. This is my code: private IWebDriver GetChromeDriver(BrowserConfigurationOptions browserConfigOptions) { var options = new ChromeOptions(); options.AddArguments("disable-infobars"); options.AddUserProfilePreference("credentials_enable_service", false); if (browserConfigOptions.KioskModeForChrome) options.AddArgument("--kiosk"); //options

SendKeys() method ignores some characters when sending to a text box

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:47:09
问题 EDIT : I've found the solutions to this problem : Solution Below I've been having a funny problem since I've moved my Selenium Server installation to another machine. Every since i'm running tests on this new machine, my login tests don't work anymore. After investigation, I've found out that the password field was populated with an incorrect value (hence the test fail). I'm trying to do the following : _passWordTextBox.Clear(); _passWordTextBox.SendKeys("!!ä{dasd$352310!!!\\_XY>èà$£<?^^");

What are the capabilities of the browser opened by selenium-webdriver?

送分小仙女□ 提交于 2019-12-13 03:46:45
问题 I am curious to know the capabilities of the Chrome browser opened through the code: driver=webdriver.chromedriver() Is it same as that of incognito mode or is there a different kind? 回答1: To extract the capabilities of the ChromeDriver / Chrome Browser you can use the capabilities property which returns a dictionary and you can use the following solution: Code Block: from selenium import webdriver driver = webdriver.Chrome(executable_path="C:\\Utility\\BrowserDrivers\\chromedriver.exe") my

org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed (headless chrome)

对着背影说爱祢 提交于 2019-12-13 03:41:40
问题 I am running headless chrome on centos, with headless chrome version 2.38, and google-chrome-stable version 67.0 System.setProperty("webdriver.chrome.driver", driverPath); log.warn("chrome driver path is : {}", driverPath); List<String> options = proxyConfig.getChromeOptions(); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments(options); Map<String, String> capabilites = proxyConfig.getCapabilities(); if(MapUtils.isNotEmpty(capabilites)) { for (Map.Entry<String,

Actions in selenium firefox

99封情书 提交于 2019-12-13 03:39:26
问题 I have been trying to perform the actions operation in firefox quantum version 57+ with selenium version 3.5.0 and using geckodriver 0.19.1. But the thing is it is unable to perform the click operation using Actions. The code that I have written is : WebElement ele = driver.findElement(By.xpath("//div[contains(@title,'" + projName + "')]")); new Actions(driver).click(ele).perform(); But the thing is this line of code is not getting executed and the click operation is not performed. This code

--headless flag no longer works after upgrade to chrome 76/chromedriver 76

你。 提交于 2019-12-13 03:38:56
问题 I am running python selenium tests using headless chrome. After updating to chrome Version 76.0.3809.87 and chromedriver version ChromeDriver 76.0.3809.68 , the chromeOptions that I use (see code sample below)... no longer work. i.e. the browser is launched (non headless) and the resolution settings are also not working Anyone else seeing this after upgrading to chromedriver 75/76? chrome_options = {'args': ['headless', '--window-size=1920,1080', 'no-sandbox', '--dns-prefetch-disable','-