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.

Click() method in C# is not returning, causing the test to hang. #5071

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 5071

I have a Web Element (a link) that is correctly found on my page.

<a onclick="javascript:doPostDMS('en-us'); return false;" id="btnPentana" title="Post
To DMS" class="shelf-button lnkPostToDMS" href="javascript:__doPostBack('btnPentana','')"></a>

The problem I have is when I execute the click
1. The button is clicked
2, A new browser window is opened (this tells me I did actually click)

Problem: the click method doesn't return and the test hangs.

With the following code:

Console.WriteLine("Before");
Driver.FindElementById("btnPentana").Click();
Console.WriteLine("After");

I see the Before statement written to the console. I see the new window open (a result
of clicking the link). I do Not see the "After".

I expect to have the Click method return so I can continue on by switching to the new
window, etc.

Selenium version: selenium-server-standalone-2.29.0.jar
selenium-dotnet-2.29.1.zip
OS: Windows 7
Browser: Firefox 15.01, Chrome 20.0.1132.47 m
Browser version:


Reported by brianwork@brianandsherri.com on 2013-01-24 21:09:03

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions