23 May 2012 00:11:35 UTC
- Distribution: Test-WebDriver
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (185 / 0 / 0)
- KwaliteeBus factor: 0
- 24.77% Coverage
- License: perl_5
- Activity24 month
- Download (4.19KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionLUKEC Luke Closs
- COPYRIGHT AND LICENSE
Environment vars can be used to specify options to pass to Selenium::Remote::Driver. ENV vars are prefixed with
Set the Selenium server address with
Pick which browser is used using the
See Selenium::Driver::Remote for the meanings of these options.
Returns true if a Selenium server is running. The host and port parameters are optional, and default to
TWD_PORTcan also be used to determine the server to check.
Below here are some methods that make things less easier or less wordy.
Get the text of a particular element. Wrapper around find_element()
Get the current text for the whole body.
Get the current URL.
Get the path part of the current browser location.
For Best Practice - I recommend subclassing Test::WebDriver for your application, and then refactoring common or app specific methods into MyApp::WebDriver so that your test files do not have much duplication. As your app changes, you can update MyApp::WebDriver rather than all the individual test files.
Created by: Luke Closs <email@example.com>, but inspired by Test::WWW::Selenium and it's authors.
This work was sponsored by Prime Radiant, Inc.
Copyright (c) 2012 Prime Radiant, Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Test::WebDriver, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::WebDriver
For more information on module installation, please visit the detailed CPAN module installation guide.