README 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. *** NOTE: Most of the JSON Wire Protocol http://code.google.com/p/selenium/wiki/JsonWireProtocol
  2. *** has been implemented. This is still beta quality code.
  3. Perl Bindings for Selenium 2.0 Remote WebDriver
  4. This is a Perl Binding for Selenium 2.0 Remote WebDriver, which you should download
  5. from http://code.google.com/p/selenium; look for selenium-server-standalone.jar.
  6. This binding will not work with the 1.0 version of Selenium. Please use
  7. WWW::Selenium from CPAN if you're interested in 1.0 bindings.
  8. The unit tests provide varioud examples on how to invoke & use the module.
  9. INSTALLATION
  10. To install this module, run the following commands:
  11. perl Makefile.PL
  12. make
  13. make test
  14. make install
  15. UNIT TESTS
  16. This module uses LWP::Protocol::PSGI to facilitate unit tests. LWP::Protocol::PSGI
  17. overrides the LWP HTTP/HTTPS & this allows us to "mock" the interaction with
  18. WebDriver Server. In regular instances you should be running the tests against
  19. the mocked recording, which are stored in t/mock-recordings. If you want to run
  20. the tests live against the WebDriver server, set an environment variable
  21. WD_MOCKING_RECORD to 1. This will force the unit tests to run tests against the
  22. WebDriver server & also save the traffic (request/response) in t/mock-recordings.
  23. Either reset the environment variable or set it to 0 to revert to mocking the
  24. traffic.
  25. SUPPORT AND DOCUMENTATION
  26. After installing, you can find documentation for this module with the
  27. perldoc command.
  28. perldoc Selenium::Remote::Driver
  29. perldoc Selenium::Remote::WebElement
  30. Please file all bugs for this module at:
  31. https://github.com/aivaturi/Selenium-Remote-Driver/issues
  32. LICENSE AND COPYRIGHT
  33. Copyright (c) 2010-2011 Aditya Ivaturi, Gordon Child
  34. Licensed under the Apache License, Version 2.0 (the "License");
  35. you may not use this file except in compliance with the License.
  36. You may obtain a copy of the License at
  37. http://www.apache.org/licenses/LICENSE-2.0
  38. Unless required by applicable law or agreed to in writing, software
  39. distributed under the License is distributed on an "AS IS" BASIS,
  40. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  41. See the License for the specific language governing permissions and
  42. limitations under the License.