The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Socialtext::WikiFixture::Selenese - Executes wiki tables using Selenium RC

DESCRIPTION

This class executes wiki tables using Selenium Remote Control. Test tables contain 3 columns:

  | *Command* | *Option1* | *Option2* |

This module will attempt to convert selenese into proper calls to Test::WWW::Selenium, otherwise the calls will be passed straight to Test::WWW::Selenium.

FUNCTIONS

new( %opts )

Create a new fixture object. Options:

host

Mandatory - specifies the Selenium server to connect to

port

Optional - specifies the port of the Selenium server (default: 4444)

browser_url

Mandatory - Passed to WWW::Selenium constructor, specifies where the browser should connect to.

init()

Called by the constructor. Creates a Test::WWW::Selenium object which asks the Selenium Server to launch a browser.

This removes the selenium frame accross the top so you can see the whole window

end_hook()

Called by the test plan after testing has finished. Kills the browser.

handle_command()

Called by the test plan to execute each command.

click_and_wait()

Clicks and waits.

select_and_wait()

Selects and waits.

text_present_like()

Search entire body for given text

store_value( $name, $locator )

Stores an element's value as a variable for later use.

store_text( $name, $locator )

Stores an element's text as a variable for later use.

Prints the text of the current page loaded into the browser.

pause($timeout)

Waits $timeout milliseconds (default: 1 second)

wait_for_text_present_ok($text, $timeout)

Waits until $text is present in the html source

wait_for_element_present_ok($locator, $timeout)

Waits until $locator is present

wait_for_element_visible_ok($locator, $timeout)

Waits until $locator is visible

wait_for_text_not_present_ok($text, $timeout)

Waits until $text is not present in the html source

wait_for_element_not_present_ok($locator, $timeout)

Waits until $locator is not present

wait_for_element_not_visible_ok($locator, $timeout)

Waits until $locator is not visible

AUTOLOAD

Any functions not specified are passed to Test::WWW::Selenium

AUTHOR

Luke Closs, <luke.closs at socialtext.com>

BUGS

Please report any bugs or feature requests to bug-socialtext-editpage at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Socialtext-WikiTest. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Socialtext::WikiFixture::Selenese

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2006 Luke Closs, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.