Commit | Line | Data |
757f2207 |
1 | sub new(%hash) |
2 | browser => which browser to test |
3 | browser_url => base of app |
4 | $ENV{SELENIUM_HOST/_PORT} || host/port => selenium server |
5 | env vars mean to take existing server, host/port args mean to start with xvnc |
6 | |
7 | method start_server |
8 | starts the selenium server if local, otherwise tries to connect to it |
9 | |
10 | method stop_server |
11 | derp |
12 | |
13 | method test_directory($dir) |
14 | finds HTML files in $dir, calls run_tests_for on them |
15 | |
16 | method run_tests_for($html_file) |
17 | uses Socialtext::WikiFixture::Selenese to run $html_file against selenium |
18 | server |
19 | |
20 | method _get_rows_for($html_file) |
21 | reads $html_file and returns data that S::WF::S understands |