rob1
New Member
Posts: 4
|
Post by rob1 on Nov 2, 2020 16:00:14 GMT
I want to run an IF condition that depends on whether certain text is or is not present anywhere on the webpage being viewed, even if I would need to scroll down to see it.
|
|
|
Post by philranger on Nov 9, 2020 18:28:40 GMT
Hello,
I would do a "ctrl-a" (select all), ctrl-c (copy), paste to a notepad, use its "find" feature", hit escape twice, do a ctrl-c, then check if the content of the clipboard is equal to the wanted value. Not efficient nor elegant though, so someone may have a better response
|
|
|
Post by Steve on Nov 10, 2020 7:29:24 GMT
Yeah i'm with philranger on this one. Your not going to get an elegant solution here. MMM has an internal variable called %clipboard% that holds the current clipboard and also the clipboard IF condition www.turnssoft.com/conditions.html#clipboard. I'd consider using one of those to evaluate the text. But...you have to get your page into your clipboard first. 1 | IF | CLIPBOARD | VALUE | TEXT CONTAINS | foo bar | MESSAGE PROMPT | I found it!::TEXT Found!::0
|
|