This is a migrated thread and some comments may be shown as answers.

Using Testing Framework under Firefox 11 and 12

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 14 May 2012, 07:53 PM
Hello I have a problem of mouse clicking event.
I am creating automation test using C# and WebAii. Basically I try to find id tag of target element on the web page then hover the mouse and click on the button.
This event works fine with IE 9 but when i run this script with Firefox 11 and 12, It does not work. In Firefox when the mouse pointer hover on the button, the mouse pointer does not change to hand pointer and it is not click the button. is this because WebAii does not support latest Firefox or something?
Here is some portions of my code basically what I did was find the ButtonElement by Id and if ButtonElement is found then call the following method.

if (ButtonElement != null)
{
       ButtonElement.ScrollToVisible();
       ButtonElement.MouseHover();
       ButtonElement.MouseClick();
}
 
Else
{
       Do Something
}

Thanks

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 May 2012, 12:10 PM
Hi Ken,

Our latest official release 2012.1.411 supports Firefox 11 and 12. I just tested your scenario against this Telerik demo site and the code below executed successfully in Firefox 12.
// Launch an instance of the browser
Manager.LaunchNewBrowser(BrowserType.FireFox, true);
 
 
ActiveBrowser.WaitForElement(new HtmlFindExpression("id=btnStandard_input"), 20000, false);
 
HtmlControl ButtonElement = ActiveBrowser.Find.ById<HtmlControl>("btnStandard_input");
Assert.IsNotNull(ButtonElement);
 
if (ButtonElement != null)
{
    ButtonElement.ScrollToVisible();
    ButtonElement.MouseHover();
    ButtonElement.MouseClick();
}

To continue troubleshooting we'll need to reproduce the issue locally. Please provide either access to the application you are testing or a public site that exhibits the same behavior.

Greetings,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Ken
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or