I'd like to use bat to make a small app.
What I need is, the file opening a page ( example: start iexplore http://www.google.com)
Then I want the bat to search for a specific text in the opened page (like "Search") and then for the next step it should go like :
1) If it finds it --> Creating a log file (txt) with some text like "Pass" or something I can change later on.
2) If it doesn't find it (here I have two options)
Option 1 : Write a log file saying you failed the test
Option 2 : Opening a webpage and writing a log file with some text.
I know I can open a page with
start iexplore http://www.google.com
But I don't know how to do the rest.
Any help is welcome !