This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61092
    
  66

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30361
    
150

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we perform web automation using JavaScript