SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
347 stars 195 forks source link

Click on div in firefox in ubuntu does not work #3476

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 3476

I am using 2.18.0 version, FF 9.0.1 in ubuntu 8.04. When try to click on div which have
an a href inside, does not work. I use the same test in windows 7 with same FF version
and it works properly. How ubuntu OS impacts on that? How can I solve it?
Regards

Reported by dbrandib on 2012-03-01 23:45:27

lukeis commented 8 years ago
Sorry, in windows 7 with FF 10.0.2 it does not work too

Reported by dbrandib on 2012-03-02 00:06:09

lukeis commented 8 years ago
In windows 7 with 2.19.0 it works

Reported by dbrandib on 2012-03-02 00:26:57

lukeis commented 8 years ago
In ubuntu 8.04 with FF 10.0.2 and selenium 2.19.0 it does not work

Reported by dbrandib on 2012-03-02 00:41:51

lukeis commented 8 years ago
Clicking on links inside divs isn't broken *in general*, we have tests that cover this
functionality and are passing. Please provide a code example (i.e. HTML/CSS/JS + Selenium
code) to reproduce the problem - as is there's no actionable information in this bug
report.

Reported by jari.bakken on 2012-03-05 06:56:06

lukeis commented 8 years ago
Hi again,

html code is very simple:

<div id="mydiv">
<a href="http://mysite.net" target="_blank"><img width="300" height="250" border="0"
alt="" src="http://mysite.net/images/image.jpg" id="img5668168"></a>
</div>

I try to test the link to the new page using the following code in selenium Remote
Control:

driver.get("mysite.net");
driver.findElement(By.xpath("//div[@id='mydiv']")).click();

After check it is some OS and FF version, these are the scenarios I checked:

Windows 7, FF 10.0.2, Selenium 2.18.0 ->KO
Windows 7, FF 10.0.2, Selenium 2.19.0 ->OK
Ubuntu 8.04, FF 19.0.2, Selnium 2.18.0 ->KO
Ubuntu 8.04, FF 19.0.2, Selnium 2.19.0 ->KO

What I have verified is that the following code works properly:
driver.get("mysite.net");
driver.findElement(By.xpath("//div[@id='mydiv']/a")).click();

If I add xpath to a element, click works but without a, clicking in div it does not
work.
hope it helps to find the issue.
Regards

Reported by dbrandib on 2012-03-05 12:18:09

lukeis commented 8 years ago

Reported by barancev on 2012-05-11 06:01:46

lukeis commented 8 years ago
Closing the issue due to its age and inactivity. If it is still actual please ask to
reopen and provide an executable scenario and a sample page to reproduce it.

Reported by barancev on 2013-08-24 06:37:37

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:14:55