Popup Question

How to use eValid to support regression testing.

Popup Question

Postby SarahC » Thu Jan 09, 2014 1:56 pm

Afternoon eValid forum:

How can I get the text that shows up in my applications' textbox popups.

Thanks
SarahC
 
Posts: 1
Joined: Thu Jan 09, 2014 1:47 pm

Re: Popup Question

Postby eValid » Fri Jan 10, 2014 1:23 pm

SarahC wrote:Afternoon eValid forum:

How can I get the text that shows up in my applications' textbox popups.

Thanks


Hey SarahC, thanks for posting your question.

That's a good one...and it IS tricky to do this.

The key to understanding how is to recognize that the text you see in the popup resides in some property of the element that causes the popup to appear.

So the first thing you do is use the PageMap to identify which element on the page houses the popup. Remember, a popup is typically invoked when you "mouseover" the element.

When you know the specific index on the page, then the next step is to examine the element to find the name of the property that contains the text. Normally this is something like "innerHTML" but it could be anything. It varies with the page.

When you have the name of the property on the element identified, then you can use an eValid DOM Input/Output command to grab the contents of the specific property with a ValueGetElement command.

Here is the manual page that applies:


http://www.e-Valid.com/Products/Documen ... ation.html

Now you have the value in the internal name "elementValue". If you want to save it to a local file you do this with the DOM input/output commands, as described in this manual page:


http://www.e-Valid.com/Products/Documen ... utput.html

-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Regression Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons