February 04, 2008

Clicking on HtmlText Object

Advanced web technologies are always a challenge for Automation. Few enterprise web applications have HtmlText object for navigating purpose. They look like HtmlLinks or HtmlPushButtons. Actually those are HtmlText objects.

Silktest is always trying to click first position of HtmlText object. For ex. Assume that my text object is MyApp.MainFrame.Apply

MyApp.MainFrame.Apply.Click () is equal to MyApp.MainFrame.Apply.Click (1,1,1)

Sometimes the click will not happen properly. We can't use DoClick method for HtmlText objects. At that time, we need to use two ways. One is Clicking on center of that object or blindly give some co ordinates.

In first way, MyApp.MainFrame.Apply.ClickCenter ()
- Here I've extended the click function.

In second way, MyApp.MainFrame.Apply.Click (1,6,3)

0 comments: