aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Can we perform web automation using JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Can we perform web automation using JavaScript" Watch "Can we perform web automation using JavaScript" New topic
Author

Can we perform web automation using JavaScript

Venkateswara Rao K L
Greenhorn

Joined: Aug 27, 2010
Posts: 13
Hi all,

Can we perform web automation using JavaScript...If yes, please let me know how and where to learn it(any tutorial???).
I dont want a tool that does automation using javascript. I want to learn it from basics.
Thanks


Venky
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Perhaps you could explain what you mean by "web automation"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Venkateswara Rao K L
Greenhorn

Joined: Aug 27, 2010
Posts: 13
Hi
By web automation I mean automating the clicks and inputs that we provide to web page.
I heard that using VB script we can perform such things but its limited IE objects.
So just wanted to know if we can do this with JavaScript
Thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

No. JavaScript is designed to run within a page and is limited in what it can do. You wouldn't want a webpage to go to other pages without your permission!

Take a look at a tool like Selenium which does do what you want.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Selenium, QUnit, JSUnit, FireUnit

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can we perform web automation using JavaScript