18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Object Name Is Keep Changing

NewYorker123NewYorker123 Members
edited May 2013 in Sahi - Open Source
_setValue(_textbox("ctl00\$ctl00\$ctl00\$ContentPlaceHolder1\$ContentPlaceHolder1\$CDWizard\$dab024a8-aad6-427b-b99d-d1dedb3b2579\$cmbSelectParentReportType"), "Messages");

Above is how sahi identifies a text box in my application. Problem is "$dab024a8-aad6-427b-b99d-d1dedb3b2579" part of the object identifier is keep changing every time I refresh the page. I am wondering is sahi supports the use of wild card e.g: * or % which I can use in this case?
Syntax will be appreciated if there is any.

Many Thanks.

Best Answers

  • Answer ✓
    Hi

    you can use regular expressions like _textbox($pattern)

    _setValue(_textbox("/ParentReportType/"), "Message");

    Regards
    Wormi
  • edited June 2013 Answer ✓
    Worked as a charm.

    Thanks.
Sign In or Register to comment.