Hello
I was wondering if it was possible to find text on a web page where the text was on a part of the page that was not on screen.
I am filling out various fields on a web page that requires me to scroll, so some fields are not on screen.
If there is a way to do this I would appreciate any guidance.
Kind regards
Trevor
Find text on a web page
Moderators: Dorian (MJT support), JRL
Re: Find text on a web page
Pressing ctrl + a seems to highlight all the text at least on some web pages. Pressing ctrl + c would then copy the text to the clipboard. You could then use GetClipboard to assign the collected text to a variable and from there parse out the desired text. If you only want text that is in specific fields this method won't give that kind of result. You'd have to collect all text and have a method to parse it.
Re: Find text on a web page
hi,
you can also search direct in the webpage, without loading it in a variable,
depends on the default webbrowser you use,
try this
kind regards,
Djek
you can also search direct in the webpage, without loading it in a variable,
depends on the default webbrowser you use,
try this
Code: Select all
// locate the word "Benefit"
let>SearchFor=Benefit
ExecuteFile>https://www.mjtnet.com/index.htm,1
WaitReady>0
wait>1
press CTRL
send>f
release CTRL
wait>0.2
send>%SearchFor%
press ENTER
Djek
-
- Junior Coder
- Posts: 25
- Joined: Sun Dec 15, 2013 9:27 pm
Re: Find text on a web page
Thank you for the help with this. I think that the CTRL F would be the best option for my situation.
I appreciate the help.
I appreciate the help.