I have a task set up to open a webpage and it enters my username and password but now I need to search and see if the word Accept appears so I can click the button next to Accept. Any suggestions? Below is the progress I've made of accessing the website and entering username and password:
[Root]
item0000=STRINGLIST
item0001=STRINGLIST
item0002=STRINGLIST
[\item0000]
s1=[General]
s2=ActionId=A_GENERAL_RUN_PROG
s3=Name=Run "//dashboard.xxxx.com./memberpages/xxxx/xxxx.aspx?type=offer "
s4=Enabled=-1
s5=[Params]
s6=program=http://dashboard.xxxx.com./memberpages/xxxx/xxxx. aspx?type=offer
s7=runas=0
s8=wait=0
[\item0001]
s1=[General]
s2=ActionId=A_GENERAL_PAUSE
s3=Name=Delay 25000 ms
s4=Enabled=-1
s5=[Params]
s6=delay=250
[\item0002]
s1=[General]
s2=ActionId=A_GENERAL_SENDKEYS
s3=Name=Send keys to active window
s4=Enabled=-1
s5=[Params]
s6=wincaption=Power Meter
s7=fixedwindow=1
s8=keys=xxusernamexx{TAB}xxpasswordxx{ENTER}
s9=currentwindow=1
s10=sendkind=0
s11=keylayout=67699721
search for word
search for word
In order to get text from web page use clipboard actions. Algorithm is simple:
- Send Ctrl-A (select all) to browser's window
- Clipboard Copy ( or send Ctrl-V key-combination)
- Get Text into variable
Next you may use "If ... Then" or "STR Pos" actions in order to search desired word (or substring) in the text.
- Send Ctrl-A (select all) to browser's window
- Clipboard Copy ( or send Ctrl-V key-combination)
- Get Text into variable
Next you may use "If ... Then" or "STR Pos" actions in order to search desired word (or substring) in the text.