"get-item -path" reqular expressions not working [message #1771954] |
Fri, 01 September 2017 13:19 |
Zbyszek Kieliszek Messages: 13 Registered: April 2017 |
Junior Member |
|
|
Let's have a look at following script:
get-editor | get-section Licenses | get-table | select "Trial \\[0 of 0 remaining\\]" | click
get-editor | get-section Licenses | get-table | select "Trial \\[.* of 0 remaining\\]" | click
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[0 of 0 remaining\\]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[.* of 0 remaining\\]" | check
First 3 lines are working fine. Question is, why the last line is causing error?
The Item "[Trial \[.* of 0 remaining\]]" could not be found.
at get-item (/Project/test.test:4)
It seems that there is a bug in regular expressions implementation for get-item -path
PS. following versions are also not working:
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[. of 0 remaining\\]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial \\[* of 0 remaining\\]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial [.* of 0 remaining]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial [. of 0 remaining]" | check
get-editor | get-section Licenses | get-table | get-item -path "Trial [* of 0 remaining]" | check
[Updated on: Fri, 01 September 2017 13:37] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02480 seconds