Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

WebDriver Click doesn't work when onclick has javascript and jquery. Options  #2556

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 2556

Below is the html tag, WebDriver click doesn't work. 
This website is not a public url so I am putting the html tag for your 
reference. 
<INPUT id=ADMServerPanel1_ctl02_ctl05_ctl06_btnSearch 
class=DataEntryPanelButton onclick="$(this).siblings('img[id 
$=imgSearchProgress]').replaceWith('<img src=&quot;/Branding_LPL/ 
Images/ProgressWheel.gif&quot;/>');WebForm_DoPostBackWithOptions(new 
WebForm_PostBackOptions(&quot;ADMServerPanel1$ctl02$ctl05$ctl06$btnSearch&q uot;, 
&quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" 
name=ADMServerPanel1$ctl02$ctl05$ctl06$btnSearch value="Search 
Products" type=submit> 
Can someone please shed some light on it? Or should I just log it as 
defect for the dev team to take a look at it? 
Using : Webdriver 2.6 IE 9 and IE 8 Win 7 and Win XP


Used the latest version. 2.7 . I am getting the exception below. But the 
element is clearly visible in the WebPage .
Not Visible Exception:Cannot click on element (WARNING: The server did 
not provide any stacktrace information); duration or timeout: 55.11 
seconds 
Build info: version: '2.7.0', revision: '13926', time: '2011-09-23 
13:25:56' 
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: 
'6.1', java.version: '1.6.0_26' 
Driver info: driver.version: RemoteWebDriver 
Not Visible Exception:Cannot click on element (WARNING: The server did 
not provide any stacktrace information); duration or timeout: 841 
milliseconds 
Build info: version: '2.7.0', revision: '13926', time: '2011-09-23 
13:25:56' 
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: 
'6.1', java.version: '1.6.0_26' 
Driver info: driver.version: RemoteWebDriver 

Reported by jraghavan on 2011-09-28 20:03:16

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions