selenium-procs.tcl


Procedures in this file

Detailed information

Se (public, deprecated)

 Se cmd [ args... ]
Deprecated. Invoking this procedure generates a warning.

Deprecated: polluting the root namespace.

Parameters:
cmd (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 acs::test::selenium::Se acs::test::selenium::Se (public) ad_log_deprecated ad_log_deprecated (public) Se Se Se->acs::test::selenium::Se Se->ad_log_deprecated

Testcases:
No testcase defined.

acs::test::selenium::Se (public)

 acs::test::selenium::Se cmd [ args... ]

Driver to control the test web tool Selenium. This code implements a driver to control Selenium, an open source test tool for web applications, see http://selenium.openqa.org/ This code is modeled after the Python and Ruby drivers. It differs by not implementing each supported command separately, but instead using a default dispatch to pass commands to the Selenium server with very little modification. This is why the commands are not called get_title, wait_for_page_to_load, etc. but with the same "camelCase" names used by Selenium itself, i.e. getTitle, waitForPageToLoad, etc. All commands known to return a list are singled out and their return string is converted before returning the result. Since everything is a string in Tcl, no special handling is needed for numbers and booleans (boolean results will be the same as in Selenium, i.e. "true"/"false"). Note: This code requires a new HTTP/1.1 aware version of geturl - the current http 2.4 package in Tcl doesn't know how to keep a 1.1 connection alive and will slow down because *each* Selenium request will time out. Example use: ::acs::test::selenium::Se init localhost 4444 *firefox http://www.google.com/webhp ::acs::test::selenium::Se start ::acs::test::selenium::Se open http://www.google.com/webhp ::acs::test::selenium::Se type q "hello world" ::acs::test::selenium::Se clickAndWait btnG ::acs::test::selenium::Se assertTitle "hello world - Google Search" ::acs::test::selenium::Se stop

Parameters:
cmd (required)
Author:
Jean-Claude Wippler
Created:
2007-02-24

Partial Call Graph (max 5 caller/called nodes):
%3 Se Se (public, deprecated) acs::test::selenium::Se acs::test::selenium::Se Se->acs::test::selenium::Se aa_selenium_init aa_selenium_init (private) aa_selenium_init->acs::test::selenium::Se

Testcases:
No testcase defined.
[ show source ]