Checking web pages written in Javascript

J

Joe Colella

I would like to check a web page for updates that is written
in JavaScript and requires me to log on with a username and
password, then email me a snapshot of the web page or a
copy of the web page.

Is there any software out there will let me do this?

Best regards,

Joe Colella
 
P

Phlip

Joe said:
I would like to check a web page for updates that is written
in JavaScript and requires me to log on with a username and
password, then email me a snapshot of the web page or a
copy of the web page.

Is there any software out there will let me do this?

Get with Watir; it will drive any website, nearly any way you like, using IE
in Automation mode. To get a snapshot, you could copy out the browser's
version of the HTML (essentially a dump of the DOM's objects' states), or
you can rig a screen capture program to record the actual surface of IE.

I have done this several times, in several ways, so feel free to ask about
the process, here or on the Watir mailing list. The runner-up is Selenium,
but I haven't used that yet.
 
J

Joe Colella

Phlip said:
Get with Watir; it will drive any website, nearly any way you like, using
IE in Automation mode. To get a snapshot, you could copy out the browser's
version of the HTML (essentially a dump of the DOM's objects' states), or
you can rig a screen capture program to record the actual surface of IE.

I have done this several times, in several ways, so feel free to ask about
the process, here or on the Watir mailing list. The runner-up is Selenium,
but I haven't used that yet.


Phlip,

Thank you very much for your assistance.

Joe
 
J

Joe Colella

Phlip said:
Get with Watir; it will drive any website, nearly any way you like, using
IE in Automation mode. To get a snapshot, you could copy out the browser's
version of the HTML (essentially a dump of the DOM's objects' states), or
you can rig a screen capture program to record the actual surface of IE.

I have done this several times, in several ways, so feel free to ask about
the process, here or on the Watir mailing list. The runner-up is Selenium,
but I haven't used that yet.


Phlip,

Thank you very much for your assistance.

Joe
 
A

alex_f_il

Using SWEA it could be only a few lines of code:

explorerManager.Connect();
explorerManager.LoadProject("Test.htp");
explorerManager.Navigate("http://www.google.com/");
scene = explorerManager["Scene_0"];
scene.WaitForActive(30000);
scene.HtmlInputText("q").Value = "c#";
scene.HtmlInputButton("btnG").Click();
scene = explorerManager["Scene_1"];
scene.WaitForActive(30000);
Image img =
explorerManager.GetExplorerWindowImage(scene.RuntimeSceneInfo.HWND);
img.Save("test.jpg", ImageFormat.Jpeg);
 
P

Phlip

Joe said:
Wow... That's way complicated!!!

Sorry - you weren't specific about your constraints, so I picked the
system that works on any web site, and collects an exact picture of the
surface of the browser. (Thousands of engineers use Watir to test their
websites; a technique that generally reduces complexity, overall...)

You could also try HttpUnit, but that won't get an exact picture. And
the more control over your website, the simpler your solution can be...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top