Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Control the Web browser from the client-side?

by Maestro_007 (Hermit)
on Mar 07, 2002 at 21:55 UTC ( [id://150152]=note: print w/replies, xml ) Need Help??


in reply to Re: Control the Web browser from the client-side?
in thread Control the Web browser from the client-side?

Yeah, I'm afraid for now the mandated solution is to perform all actions through a session of Netscape. I've suggested just parsing the HTML with the various Perl mods out there, and we do that to an extent when testing the actual application, but this task involves specifically testing how things are rendered on the Major Browsers.

It's the same problem as if we were writing a Java client that called an API. We'd want a way to test that Java client, both through the GUI and through the API directly.

In our case, however, the browser IS the GUI, and given that, we need to do more than parse the HTML according to how the Perl mods do it, we need to make sure IE and Netscape parse it the way we think they do.

I'm definitely going to look into OLE to work with Netscape. I wasn't sure it could be used since I saw no direct mention of it here or at CPAN. Ultimately I hope it does just come down to parsing the HTML using the standard Perl modules, but in the meantime I gotta do what the boss says. In any event, I don't think rolling my own regexen are the way to go when parsing HTML.

Update: added 'rolling my own' after perrin's most astute comments

thanks!! MM

  • Comment on Re: Re: Control the Web browser from the client-side?

Replies are listed 'Best First'.
Re: Re: Re: Control the Web browser from the client-side?
by perrin (Chancellor) on Mar 07, 2002 at 22:10 UTC
    In any event, I don't think regexen are the way to go when parsing HTML

    Most of the HTML parsing modules for perl actually do use regexes. However, what I meant was a regex for checking correctness of content, as in /Hello $username/ or /order number: $order_id/.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found