adspace


how to check whether link is disabled in QTP??

Answer Posted / Avneesh Chittodia

In QuickTest Professional (QTP), you can use the `IsEnabled` property of a WebElement to check if a link is enabled or not. Here's an example:

WebBrowser browsers = Browser("Firefox");
Link link = browsers.Page("MyPage").Link("MyLink");

if (link.IsEnabled)
Log.Info "The link is enabled."
else
Log.Error "The link is disabled."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

3021


Anyone have qtp11.0 crack?

2922


please can you help me to get a code of flames using a visual basic 6

1900


Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)

1938