Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verify Text box border color
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi guys,

In my application one text box is there. I want to check that text box border color.

How QTP can verify the text box border color.
I have checked 'Text box' back ground color. In this way is there any solution to verify the text box border color.

Any one knows the solution pls send the reply.

Thanks in Advance.

Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

You can use the below code to get the border color.

Code:
strBorderColor=Browser("").Page("").WebEdit("").Object.currentStyle.borderColor
msgbox strBorderColor

Regards,
Ankesh
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Thanks for your solution .
I tried with the code which you posted. It is working fine.
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Thanks a lot.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Verify Static Object Text which is changing Dynamically with Expected Result johnny77 0 3,305 06-25-2015, 11:32 AM
Last Post: johnny77
  Read text from text file and save it into a variable in qtp arpan 3 12,974 06-19-2013, 08:34 PM
Last Post: arpan
MyBB Is it possible to select JTree leafs by it's icon color? KUMAD 0 2,193 05-16-2013, 07:00 AM
Last Post: KUMAD
  Need to compare two text files - ignoring some text nelly27281 2 4,584 09-09-2012, 12:09 PM
Last Post: freeboynil
Exclamation How to validate color of image object in a web page qtplearner88 9 9,244 06-14-2012, 06:34 PM
Last Post: Shridevi.Salagare

Forum Jump:


Users browsing this thread: 2 Guest(s)