---
name: "Socialtext::WikiFixture::Selenese"
section: "3pm"
platform: "linux"
package: "libsocialtext-wikitest-perl"
version: "0.06-4"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Socialtext::WikiFixture::Selenese"
---

# Socialtext::WikiFixture::Selenese(3pm)

Executes wiki tables using Selenium RC

## 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.

### setup\_table\_variables

Called by *init()* during object creation.  Use it to set variables  usable by commands in the wiki test tables.

### *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.

### quote\_as\_regex( $option )

Will convert an option to a regex.  If qr// is around the option text, the regex will not be escaped.  Be careful with your regexes.

### *click\_and\_wait()*

Clicks and waits.

### *text\_present\_like()*

Search entire body for given text

### comment( $comment )

Prints `$comment` to test output.

### set( $name, $value )

Stores a variable for later use.

### *print\_page()*

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

### 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:

- •

  AnnoCPAN: Annotated CPAN documentation

  \<http://annocpan.org/dist/Socialtext-WikiTest\>

- •

  CPAN Ratings

  \<http://cpanratings.perl.org/d/Socialtext-WikiTest\>

- •

  RT: CPAN's request tracker

  \<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Socialtext-WikiTest\>

- •

  Search CPAN

  \<http://search.cpan.org/dist/Socialtext-WikiTest\>

## 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.
