• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to automatically run test scripts from inside a webpage

 
enric jaen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to automatically emulate user actions within a webpage in a similar way that Selenium does, but running the scripts from inside a webpage, and using the browser itself (instead of creating a browser instance in some language).

Notice that I don't mean the Selenium IDE (which opens a new window in FF), but I mean running the test from inside a webpage.

Can anyone suggest the best way to do this?

 
Tomek Kaczanowski
author
Ranch Hand
Posts: 40
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Enric,

I can't understand what you are trying to achieve. Could you please specify what special things you want to have, that Selenium, Geb, Watir & friends can't?
 
enric jaen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Example: Suppose I had a web page that when I do a click automatically brings me to my Amazon bought books.
 
Tim Moores
Bartender
Posts: 2748
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't really make it any clearer. If you don't want a browser instance, check out the HtmlUnit and jWebUnit libraries.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Play framework allows you to run the selenium tests from a browser, so you might want to check how its being done.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic