How does eValid tell if the page object model is present

Applying eValid to Rich Internet Application (RIA) Performance Monitoring.

How does eValid tell if the page object model is present

Postby PMorris » Mon Oct 17, 2022 9:46 am

Good morning.

Is there an eValid method in the page-object model that tells if the element is present?

If you can, please provide me some reference material along with your answer.

Thanks
PMorris
 
Posts: 1
Joined: Mon Oct 17, 2022 9:43 am

Re: How does eValid tell if the page object model is present

Postby eValid » Tue Oct 18, 2022 10:48 am

PMorris wrote:Good morning.

Is there an eValid method in the page-object model that tells if the element is present?

If you can, please provide me some reference material along with your answer.

Thanks


Thanks for posting your question PMorris.

The simplest thing to do it to search for it and see if the internal value of Source Index changes.

To search for it you use this command: IndexFindElement wid { UP | DOWN } "property_name" ["property_value"] "frame_path"

Here is the documentation page for this command: http://e-valid.com/Products/Documentati ... ement.html

The main thing to not is that in case this command does NOT find a match in the current DOM for whatever it is you've specified for the property_name or for property_name=property_value, then the SourceIndex is not modified.

Not found means no change.

So, set SourceIndex to 0, run the search, and examine if Source Index has changed.

Simple as that.


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


Return to Rich Internet Application Monitoring (RIA)

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