Find element that has text starting with/containing except full match in Imacros

StackOverflow https://stackoverflow.com/questions/21699908

  •  09-10-2022
  •  | 
  •  

I know I can match with iMacros elements like this:

<button ...>Confirm action A</button>

with

TAG POS=1 TYPE=BUTTON ATTR=TXT:Confirm<SP>action<SP>A

but the problem is, that sometimes I don't know exact text on the button, but I know that it will start with or contain some specific text, in that case "Confirm".

Is it possible to match elements that contain or start with some text, instead of exact-full-text matching?

有帮助吗?

解决方案

yes, use * instead word you don't know like this:

TAG POS=1 TYPE=BUTTON ATTR=TXT:Confirm*A
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top