FuckTheWorld / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Clicking SVG 'rect' gives "Cannot read property 'scrollLeft' of null" #1154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure if this is a duplicate of Issue #427

Issue Description:
Clicking a 'rect' element in an SVG document produces an error "Cannot read 
property 'scrollLeft' of null"

Steps to reproduce:
1. Windows 7, Chrome 43.0.2357.134 m, ChromeDriver 2.16, WebDriver 2.46.0
2.Use the SVG:

<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg">
  <rect id="rect" width="50" height="50" fill="green" onclick="alert(document.getElementById('rect'))" />
</svg>

3. using WebDriver:

        WebDriver driver = new ChromeDriver();
        driver.get("http://localhost:8080/test.svg");
        driver.findElement(By.id("rect")).click();

4. Exception is thrown: Cannot read property 'scrollLeft' of null

Attached is the chromedriver log.

Original issue reported on code.google.com by asash...@yahoo.com on 15 Jul 2015 at 12:44

Attachments:

GoogleCodeExporter commented 9 years ago
Please follow the Issue427

Original comment by gmanikp...@chromium.org on 15 Jul 2015 at 5:58

osmolyar commented 5 years ago

Should this be classified under chromedriver? Not able to get the frame working with firefox either (unlike #427, so perhaps it should not be a duplicate). https://github.com/FuckTheWorld/chromedriver/issues/427#issuecomment-498290042