Hello
The UI elements change depending on the situation.
*The numbers change randomly.
Ex)
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name="options[reportOptions][15][interests]"][Value="1"]
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name="options[reportOptions][296][interests]"][Value="1"]
So, I tried to modify the selector using the Regular Expression Match Operator as follows, but I am consistently encountering an error.
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name@="options\[reportOptions]\[\\d\+]\[interests]"][Value="1"]
I've tested it dozens of times to see if it's a special text problem, but it hasn't worked. I have no idea what the problem is.
Is there any mistake in what I did?
Best Regards.
Check if the output/EscapedText is stored as a text or numerical value. I am not sure if this is relevant in this specific context though but it is worth a try.
Case7
1. Escape text for regular expression
input : 15
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name="options[reportOptions][%EscapedText%][interests]"][Value="1"]
3. Test Result
Success
Case8
1. Escape text for regular expression
input : /d+
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name="options[reportOptions][%EscapedText%][interests]"][Value="1"]
3. Test Result
Fail
Case9
1. Escape text for regular expression
input : /d+
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name@="options[reportOptions][%EscapedText%][interests]"][Value="1"]
3. Test Result
Fail
Still don't know how to use /d+.
Best Regards.
Hi @song_coach try this
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name="options[reportOptions][%EscapedText%][interests]"][Value="1"]
Hope this helps
Usha
Case4
1. Escape text for regular expression
input : options[reportOptions][15][interests]
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name=%EscapedText%][Value="1"]
3. Test Result
Fail
Case5
1. Escape text for regular expression
input : options[reportOptions][/d+][interests]
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name=%EscapedText%][Value="1"]
3. Test Result
Fail
Case6
1. Escape text for regular expression
input : options[reportOptions][15][interests]
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name@=%EscapedText%][Value="1"]
3. Test Result
Fail
When comparing case 1 and case 4 I think it's right to put in double quotes.
Still don't know how to use /d+.
variable should be without double quotes
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name=%EscapedText%][Value="1"]
3. Test Result
I tested it according to your advice.
\d+ doesn't seem to apply.
Case1
1. Escape text for regular expression
input : options[reportOptions][15][interests]
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name="%EscapedText%"][Value="1"]
3. Test Result
Success
Case2
1. Escape text for regular expression
input : options[reportOptions][/d+][interests]
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name="%EscapedText%"][Value="1"]
3. Test Result
Fail
Case3
1. Escape text for regular expression
input : options[reportOptions][/d+][interests]
output : EscapedText
2. Ui element Selector
form[Method="post"][Name="main"] > table > tbody > tr > td > font > input[Name@="%EscapedText%"][Value="1"]
3. Test Result
Fail
I need additional advice.
Best Regards.
Use parse text and insert the patten giving the input then that variable you need to pass in the selector.
Hope this helps
Usha
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2