public
Description: An Erlang version of Selenium remote control
Homepage: http://trac.charpi.net/charpi.net/wiki/erl_selenium
Clone URL: git://github.com/charpi/erl_selenium.git
charpi (author)
Sat Jul 04 01:26:52 -0700 2009
commit  55a49f0745dab1c1952ad09f83079aba940f13ea
tree    25d29e6b5a9de41b3ef8877cae0f2fd2d6e365fb
parent  75f077395c1f4bfd519322a52edd026e0a40eab2
erl_selenium / README
100644 46 lines (30 sloc) 1.206 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
erl_selenium is an erlang implementation of the selenium remote control protocol
 
 
Selenium is a well known test framework for web interface. Through an
external api, you are able to run your tests from any languages.
 
Several client libraries existed but I needed one in erlang ... so I did it.
 
= Compilation =
 
* Edit the file erlang_config.rb and update
   ERL_TOP="/usr/local/lib/erlang_R13-B0"
* Execute rake in a shell window
 
= Installation =
 
* Put the directory selenium_remote/ebin in your ERL_PATH.
 
= Usage =
== Simple ==
 
test () ->
    Session = selenium :start (?HOST,?PORT, ?BROWSER, ?URL),
    Start_url = "http://charpi.net",
    selenium: cmd (Session, open, [Start_url]),
    selenium: stop (Session).
 
== Selenium API ==
 
test () ->
    Session = selenium :start (?HOST,?PORT, ?BROWSER, ?URL),
    Start_url = "http://charpi.net",
    selenium_api: open (Session, Start_url),
    selenium: stop (Session).
 
== Selenium Session ==
 
test () ->
    Session = selenium :launch_session (?HOST,?PORT, ?BROWSER, ?URL),
    Start_url = "http://charpi.net",
    Session: open (Start_url),
    Session: stop_session ().
 
 
Project web site: http://trac.charpi.net/charpi.net/wiki/erl_selenium