I am looking to launch opera from a perl script. This part I have done:
system ("opera $ARGV");
I want the script to wait until the page is done loading, and then do something else. The problem is that I don't know how to get the status out of opera. Does anyone know how to do this? I am presently using a sleep command, but that is not good enough for my application.
I thought of using the following line:
$browser_status = system ("opera $ARGV");
But, browser status comes back as a 0 before the browser loads anything.
Basically I want to do two things:
1.) Have the script wait until the page is done loading in the browser.
2.) Have the script be aware if there was a problem loading the script. (If possible) I know this is possible with lwp, but for what I am looking to do, lwp will not work. Now, if it is not possible to get opera to admit there was a problem with the page, I can use lwp to see if the page returns an error. But I would like to just use opera...