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.

regular expression to access a component

sahi_nelsonsahi_nelson Members
edited November -1 in Sahi - Open Source
hello:
I have the following situation

i want access to a div whose id is not constant, specifically: _click(_div(23[2])) , because i am validating a date components for my site and i need select a day, But how accessible will use me later

the problem is that the number final of the _div : [2] , is not constant is 2 or 3 or 4 usually, between 0-9

and i have the situation that sometimes i ejecute _click(_div(23[2])) when should _click(_div(23[3])) and backward(vice versa)...

i try make a regular expression to access, but no worked , sahi not recognize any..

i need a regular expression to access a componente that i want.....

help me , thans

Comments

This discussion has been closed.