selenium-chromedriver

Chrome is not started with selenium and behat

你离开我真会死。 提交于 2019-12-12 05:24:43
问题 Please help. I use windows to run my tests. I run selenium with chrome driver: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.4.0.jar My behat_dev.yml : default: suites: default: mink_session: selenium2 javascript_session: selenium2 extensions: Behat\MinkExtension: base_url: http://en.wikipedia.org default_session : selenium2 javascript_session: selenium2 browser_name : chrome goutte: ~ selenium2 : wd_host : http://127.0.0.1:4444/wd/hub browser: chrome

Selenium ChromeDriver, cannot start Google Chrome with Extension loaded

末鹿安然 提交于 2019-12-12 05:09:48
问题 I am working on creating automated tests for my Google Chrome Extension using Selenium 2.0 with: WebdriverJS + NodeJS ChromeDriver MacOSX 10.8.4 First, I wanted to test the installation process as well, but it doesn't seem possible to click the "Add" button when the installation dialog pops up using Selenium. (My other SO question about this). Now, I changed my plan. Instead of installing the extension as part of the test drive, I want to start Chrome with my extension installed. But I have

Unable to assert axis label text in highcharts using Geb

╄→гoц情女王★ 提交于 2019-12-12 04:53:58
问题 I am writing a geb test that asserts the axis labels in a highcharts graph. The test I wrote works when run with the selenium chrome driver. When I run with phantomjs it fails. //Selector in GEB $(id:"graph-id").find("g.highcharts-legend-item").find("tspan").text() This returns as expected in Chrome. It returns empty in phantomjs. We have to use phantomjs for our CI builds. 回答1: If for whatever reason geb isn't supporting your phantomjs driver properly, you can always execute a javascript

WebDriver get text from table

不问归期 提交于 2019-12-12 04:47:45
问题 I use WebDriver and ChromeDriver. How i can fetch text from second table? I have two tables. 1: click to see photo 2: click to see photo So, When i try download data from second table i download from first :/ WebElement baseTable = driver.findElement(By.className("grey")); List<WebElement> tableRows = baseTable.findElements(By.tagName("tr")); JOptionPane.showMessageDialog(null, tableRows.get(1).getText()); Thank you for your help ! 回答1: You can use xpath line this for this ' Actualny tryb' /

Find element text using xpath in selenium-python NOt Working

微笑、不失礼 提交于 2019-12-12 04:35:09
问题 html looks like thisI have written this code to scrape all courses from a url. For this I am trying to get the count of courses using xpath . But it does not give me anything. Where I am doing wrong? import requests from bs4 import BeautifulSoup from selenium import webdriver from time import sleep from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait` class FinalProject: def __init_

ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain

馋奶兔 提交于 2019-12-12 04:31:25
问题 I try to use selenium(latest version, chrome version 58) with org.openqa.selenium.chrome.ChromeDriver . This class has documentation which appears in eclipse. It includes simple test: import java.io.File; import java.io.IOException; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.openqa.selenium.By; import org.openqa.selenium

python selenium keep refreshing until item found (Chromedriver)

我怕爱的太早我们不能终老 提交于 2019-12-12 04:22:12
问题 I am trying to achieve the feature of a Python script using selenium to keep refreshing the current chromepage until, for example, the certain item that makes driver.find_element_by_partial_link_text("Schott") is found. I was thinking about this: while not driver.find_element_by_partial_link_text("Schott"): driver.refresh driver.find_element_by_partial_link_text("Schott").click() However, it seems like the function driver.find_element_by_partial_link_text("Schott") is not the way to match the

JavaScript webdriver-selenium `mouseMove` inaccurate on Chromium?

社会主义新天地 提交于 2019-12-12 04:11:08
问题 Running Chromedriver through NodeJs - protractor and selenium-webdriver - against an embedded Chromium on Windows 10. It seems that using getLocation returns accurate positions, but when I try to have WebDriver move the mouse to those positions, the mouse doesn't get there -- unless I multiply the positions by about 1.45. Surely that can't be right? This is the first time I've used Selenium in years, but I'm sure I haven't had to do this before. Below is an abbreviation of the code, with some

Access frame via “relative=up” with Selenium & Ruby

谁都会走 提交于 2019-12-12 04:09:05
问题 Recently I've used command "selectFrame > relative=up" in Selenium IDE to switch between nested frames. Since i've decided to rewrite all code in Selenium and Ruby, i can't find this command analog for mentioned language. I can't select frame by name because it different after any reload. Other frame attributes are: iframe id="ext-comp-1465" name="ext-comp-1465" frameborder="0" src="/5005700001V96Ub/e?retURL=%2F5005700001V96Ub&isdtp=vw&cancelURL=%2F5005700001V96Ub&nonce

Selenium Python - select from autosuggest dropdown

感情迁移 提交于 2019-12-12 04:07:36
问题 I'm trying to select the first value of the drop down from the autosuggested list when I use sendkey with a value of 'ada' into the "Enter Company" field on the following page. http://www.moneycontrol.com/stocks/histstock.php inputElement = driver.find_element_by_xpath("""//*[@id="mycomp"]""") inputElement.send_keys('ada') driver.find_element_by_xpath("""//*[@id="suggest"]/ul/li[1]""") This doesn't seem to do the trick. Please help. Regards, babsdoc 回答1: Try to wait until required option