18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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
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
This discussion has been closed.
Comments
I assume only one of the date controls will be visible at any given time.
You could use the solution given here: http://sahi.co.in/forums/viewtopic.php?id=2124
Regards,
Narayan
it works very well with de function that you give.
thans again