Forum Discussion

vgangavarapu198's avatar
vgangavarapu198
Occasional Contributor
11 years ago

Object Propery value changing everytime

I am working on the Web Application testing and trying to capture the object and it is giving error in runtime as Object does not find. I did some R&D and came to know that Objct value is changing each time.

 

How to capture the sch type of Objects. I can give you more informations if needed.

  • The full path of objects in Web Applications do change.

    It is best to look for a property on the object that does not change.

    For example get someone to create a new property on all objects called testId.  This will be the primary key and it's contents should never change once set.

     

    Next search for the object based on it's testId.  Such as

    set myObject = sys.browser("*").page("*").Find("testId", "FindMe").

    Where "FindMe" is the unique content for the property testId.