cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get text out of a Password Info Icon and print in your test script- TestComplete script mode

SOLVED
Highlighted
Contributor

How to Get text out of a Password Info Icon and print in your test script- TestComplete script mode

Hello House,

 

I have a change password web page,

In this Create Your Password page, there is password field and an "i" icon is present next to the Password creation rules.

 

When I Click "info icon" , correct password requirements are displayed.

 

Attached is the screenshot.

 

Could someone please share the code on how to get the text  of password rules inside this i information icon, as soon as the user mouse hover over  "i" icon of Password creation rules and print them in the log.

 

Note : i icon displaces away as soon as the mouse hover is removed from this place.

 

Best,

Prabhjot

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: How to Get text out of a Password Info Icon and print in your test script- TestComplete script m

As you note in your screenshot...to be able to map or examine the window, you will use Shift-A click and fix to get the info.

To actually get the object to come up, you'll use MouseHover over the "i" icon.

 

as for specific code... once you get to that point, you'll simply grab the contentText of the popup.  That should get you what you need.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

1 REPLY 1
Community Hero

Re: How to Get text out of a Password Info Icon and print in your test script- TestComplete script m

As you note in your screenshot...to be able to map or examine the window, you will use Shift-A click and fix to get the info.

To actually get the object to come up, you'll use MouseHover over the "i" icon.

 

as for specific code... once you get to that point, you'll simply grab the contentText of the popup.  That should get you what you need.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post