473,378 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Checking web pages written in Javascript


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


Dec 18 '06 #1
6 1467
Joe Colella wrote:
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.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Dec 19 '06 #2

"Phlip" <ph******@yahoo.comwrote in message
news:_9****************@newssvr17.news.prodigy.net ...
Joe Colella wrote:
>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.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!

Phlip,

Thank you very much for your assistance.

Joe

Dec 19 '06 #3

"Phlip" <ph******@yahoo.comwrote in message
news:_9****************@newssvr17.news.prodigy.net ...
Joe Colella wrote:
>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.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!

Phlip,

Thank you very much for your assistance.

Joe

Dec 19 '06 #4

Joe Colella wrote:
"Phlip" <ph******@yahoo.comwrote in message
news:_9****************@newssvr17.news.prodigy.net ...
Joe Colella wrote:
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.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!


Phlip,

Thank you very much for your assistance.

Joe

Phlip,

Wow... That's way complicated!!!

Joe

Dec 20 '06 #5
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.Runti meSceneInfo.HWND);
img.Save("test.jpg", ImageFormat.Jpeg);

gf****@yahoo.com wrote:
Joe Colella wrote:
"Phlip" <ph******@yahoo.comwrote in message
news:_9****************@newssvr17.news.prodigy.net ...
Joe Colella wrote:
>
>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.
>
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
>

Phlip,

Thank you very much for your assistance.

Joe


Phlip,

Wow... That's way complicated!!!

Joe
Dec 20 '06 #6
Joe Colella wrote:
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...

--
Phlip

Dec 20 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: cruiserweight | last post by:
I've constructed this form so that if Javascript is disaabled it will show a typical <input type="submit"> button, BUT using the <noscript> tag. Why is this a problem and what's a viable solution?...
14
by: Frances Del Rio | last post by:
if (parent.frames.main.location == 'mediaselect.html') { I have a very simple frameset, name of frame where I'm checking is 'main'... why is this not working? I mean this is correct syntax,...
17
by: Christopher Benson-Manica | last post by:
All right, since my previous idea (calling functions through a wrapper) was apparently so awful no one could suggest any improvements, I'll try a different tack. My end goal is to make detecting...
23
by: batels | last post by:
Hey All, I'm a bit new at this,and i tryed seraching google about it but i didn't quite got a solution. I'm writing an HTML page that needs to check if another html file exist (in the same...
6
by: Neil | last post by:
Hi, I have an aspx page with a number of web controls on it and one of these is a cancel button. I want to check the page to see if the user has changed any of the controls, i..e typed some text...
2
by: noor | last post by:
hi, can any one tell me a javascript that can be called on mouseover event of a html link control . script can check from session either a user is login or not In the case of Login it will...
1
by: noor | last post by:
hi, can any one tell me a javascript that can be called on mouseover event of a html link control . script can check from session either a user is login or not In the case of Login it will...
5
by: onetitfemme | last post by:
.. Does anyone know of a smart way to do it? .. There are plenty of users that don't support java, javascript and/or AJAX's XMLHTTPRequest (people with handhelds, PDAs and ...) my app would...
9
by: optimistx | last post by:
Which url in your opinion would be a good or even the best example of javascript usage in a set of pages at least say 10 or more pages? How to use css, how to split js-code to files, how to code...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.