Need help with something


ok so i am very very new to this, Can someone help me with this, i am trying to do this
1 load a url
2 wait 5 seconds
3 search source code for a specific string
if found take a screenshot
else repeat

can someone please guide me??