how to check whether link is disabled in QTP??



how to check whether link is disabled in QTP??..

Answer / 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

More VB Script Interview Questions

How to take whole text output from screen of Bitmap Application.

1 Answers   CitiGroup,


Explain about tristate constants in vbscript?

1 Answers  


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

1 Answers  


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

4 Answers   TCS,


how to find greatest of n numbers!

3 Answers   Syscon,


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

1 Answers  


What are keywords in the vbscript language?

1 Answers  


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1 Answers  


How can I access an object in another frame?

1 Answers  


what is diff between static and dynaic arrys?

1 Answers  


what is fire event method in qtp?

3 Answers   TCS,


Explain the .wsf files?

1 Answers  


Categories