Using Selenium WebDriver on several Windows 7 test workstations.
FireBug Html of Button is listed below:
<input type="submit" style="border-color:Black;border-width:1px;border-style:solid;
font-family:tahoma,arial;font-size:0.7em;" id="UserPassword1_LoginButton"
onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("UserPassword1$LoginButton",
"", true, "UserPassword1", "", false, false))" value="Log In" name="UserPassword1$LoginButton">
A snippet of Selenium C# code is below:
try
{
// Click on the button identified by Id
IWebElement query = Driver.FindElement(By.Id(strControl));
query.Click();
}
On some windows test workstations the button click method works just fine. On other Windows 7 test workstations the button click does not press the button, The button is just highlighted.
I also have seen a similar problem where some times I have to include two:
query.Click();
commands in a row to get the button to press.
We have been trying to figure out what is different between environments but are not coming up with any solutions.
Any ideas on how to troubleshoot this problem or if anyone has a solution to this problem.
Thanks
Joe