Open GoogleCodeExporter opened 9 years ago
I'm unable to reproduce this issue, works fine in my test.
Tested with this configuration:-
OS:- Win 7
Selenium:- 2.45 (Java bindings)
Chrome:- v43.x
ChromeDriver= 2.15
Please let me know if i'm missing something here in environment configuration
and in reproducible steps.
----------------
WebDriver driver = new ChromeDriver();
driver.get("file:///C:/Users/path/to/index1114.html");
driver.findElement(By.id("myControl")).clear();
driver.findElement(By.id("myControl")).sendKeys("testing");
Thread.sleep(2000);
System.out.println("test complete");
driver.quit();
Original comment by agau...@chromium.org
on 3 Jun 2015 at 12:11
The issue is reproducible with simple web page (please see attachment):
OS: Win 7
Selenium: 2.45 (Java bindings)
Chrome: 43.x
ChromeDriver: 2.14 / 2.15
========================================
Sample Code
========================================
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import java.rmi.Remote;
public class ChromeDriverTest {
public static void main(String[] args){
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
System.setProperty("webdriver.chrome.driver", "C:\\Users\\amasood\\IdeaProjects\\untitled\\ChromeDriverTest\\ChromeDriverFile\\chromedriver.exe");
String pathToSeleniumWebDriverForChrome = System.getProperty("webdriver.chrome.driver");
capabilities.setCapability("chrome.binary", pathToSeleniumWebDriverForChrome);
RemoteWebDriver webDriver = new ChromeDriver(capabilities);
webDriver.manage().window().maximize();
webDriver.get("C:\\Users\\amasood\\IdeaProjects\\untitled\\ChromeDriverTest\\simplewebpage\\index.html");
WebElement webElement=webDriver.findElement(By.id("myControl"));
webElement.clear();
webElement.sendKeys("Hello World");
}
Original comment by abdullah...@gmail.com
on 19 Jun 2015 at 7:24
Attachments:
Issue is reproducible with chromedriver:2.16 and chrome:v43 when class-library
script is included in html file.
But If do not include class_library, we are unable to reproduce issue.
Sample Code:
System.setProperty("webdriver.chrome.driver",Utility.getPath("drivers/chromedriv
er.exe")); System.setProperty("webdriver.chrome.logfile","C:/Java/html/1114/chr
ome.log");
WebDriver driver = new ChromeDriver();
driver.get("file://C:/Java/html/1114/index.html");
System.out.println(driver.findElement(By.id("myControl")));
Original comment by ssudunag...@chromium.org
on 19 Jun 2015 at 9:07
Issue 887 has been merged into this issue.
Original comment by agau...@chromium.org
on 30 Jun 2015 at 9:48
Original comment by gmanikp...@chromium.org
on 8 Jul 2015 at 4:57
Original comment by gmanikp...@chromium.org
on 8 Jul 2015 at 4:57
Original issue reported on code.google.com by
emad.su...@gmail.com
on 3 Jun 2015 at 11:11Attachments: