Topic
  • 2 replies
  • Latest Post - ‏2013-09-13T13:07:27Z by Y5QY_gerben_delange
Shankaryatnal
Shankaryatnal
3 Posts

Pinned topic Dyanamic objects are not identifying in RFT

‏2013-09-12T12:58:35Z |

there are 3 Text boxes one screen and it has only one property ( .Id) to recognise. These text box is not identifying while play back the script. due to the property (.Id) is dynamically changing.

Please provide me the code to handle this using regular expression

Thanks,

Shankar

Updated on 2013-09-12T13:00:04Z at 2013-09-12T13:00:04Z by Shankaryatnal
  • michho
    michho
    7 Posts

    Re: Dyanamic objects are not identifying in RFT

    ‏2013-09-13T11:26:39Z  

    to get rid of dynamic created id's you must provide a static text. append an unique text to the id. then you can search with regexp for it.

  • Y5QY_gerben_delange
    Y5QY_gerben_delange
    34 Posts

    Re: Dyanamic objects are not identifying in RFT

    ‏2013-09-13T13:07:27Z  
    RegularExpression re = new RegularExpression("pattern", false);

     

    TestObject[] thingy = getRootTestObject().find(
    atDescendant(".class", "blabla", ".Id", re));
     

    pattern should be something like  .*pieceOfText.*

    good luck,

     

    g