Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

license: added license information

Splinter source is governed by BSD-3 (a.k.a "New BSD License" or
"Modified BSD License").

Closes #147.
commit 12e475ab0728db2af5302127b07269008291b0fc 1 parent e9a9d4f
@fsouza fsouza authored
Showing with 486 additions and 38 deletions.
  1. +4 −0 .coveragerc
  2. +4 −0 .travis.yml
  3. +6 −1 .travis_before.bash
  4. +34 −25 AUTHORS
  5. +29 −0 LICENSE
  6. +4 −0 Makefile
  7. +4 −0 README.rst
  8. +4 −0 docs/api/cookie-manager.rst
  9. +4 −0 docs/api/driver-and-element-api.rst
  10. +4 −0 docs/api/element-list.rst
  11. +4 −0 docs/api/exceptions.rst
  12. +4 −0 docs/api/index.rst
  13. +4 −0 docs/api/request-handling.rst
  14. +4 −0 docs/browser.rst
  15. +4 −0 docs/community.rst
  16. +4 −0 docs/contribute.rst
  17. +4 −0 docs/contribute/setting-up-your-development-environment.rst
  18. +4 −0 docs/contribute/writing-new-drivers.rst
  19. +4 −0 docs/cookies.rst
  20. +4 −0 docs/drivers/chrome.rst
  21. +4 −0 docs/drivers/firefox.rst
  22. +4 −0 docs/drivers/installing_pyqt.rst
  23. +4 −0 docs/drivers/zope.testbrowser.rst
  24. +4 −0 docs/elements-in-the-page.rst
  25. +4 −0 docs/finding.rst
  26. +4 −0 docs/http-status-code-and-exception.rst
  27. +4 −0 docs/iframes-and-alerts.rst
  28. +4 −0 docs/index.rst
  29. +4 −0 docs/install.rst
  30. +4 −0 docs/javascript.rst
  31. +4 −0 docs/matchers.rst
  32. +4 −0 docs/mouse-interaction.rst
  33. +4 −0 docs/news.rst
  34. +4 −0 docs/news/0.0.1.rst
  35. +4 −0 docs/news/0.0.2.rst
  36. +4 −0 docs/news/0.0.3.rst
  37. +4 −0 docs/news/0.1.1.rst
  38. +4 −0 docs/news/0.1.rst
  39. +4 −0 docs/news/0.2.rst
  40. +4 −0 docs/news/0.3.rst
  41. +4 −0 docs/news/0.4.1.rst
  42. +4 −0 docs/news/0.4.2.rst
  43. +4 −0 docs/news/0.4.3.rst
  44. +4 −0 docs/news/0.4.4.rst
  45. +4 −0 docs/news/0.4.rst
  46. +4 −0 docs/screenshot.rst
  47. +4 −0 docs/tutorial.rst
  48. +5 −0 run_tests.py
  49. +4 −0 run_tests_within_Xephyr.sh
  50. +5 −0 samples/test_facebook_events.py
  51. +4 −0 samples/test_google_search.py
  52. +6 −0 setup.py
  53. +4 −0 splinter/__init__.py
  54. +5 −0 splinter/browser.py
  55. +5 −0 splinter/cookie_manager.py
  56. +5 −0 splinter/driver/__init__.py
  57. +5 −1 splinter/driver/webdriver/__init__.py
  58. +4 −0 splinter/driver/webdriver/chrome.py
  59. +6 −0 splinter/driver/webdriver/cookie_manager.py
  60. +5 −1 splinter/driver/webdriver/firefox.py
  61. +5 −1 splinter/driver/webdriver/remote.py
  62. +6 −0 splinter/driver/zopetestbrowser.py
  63. +6 −0 splinter/element_list.py
  64. +5 −0 splinter/exceptions.py
  65. +5 −0 splinter/meta.py
  66. +3 −0  splinter/request_handler/__init__.py
  67. +6 −0 splinter/request_handler/request_handler.py
  68. +5 −0 splinter/request_handler/status_code.py
  69. +7 −2 splinter/within.py
  70. +6 −0 tests/__init__.py
  71. +7 −0 tests/async_finder.py
  72. +4 −0 tests/base.py
  73. +7 −0 tests/click_elements.py
  74. +4 −0 tests/cookies.py
  75. +4 −0 tests/element_does_not_exist.py
  76. +15 −5 tests/fake_webapp.py
  77. +4 −0 tests/find_elements.py
  78. +4 −0 tests/form_elements.py
  79. +4 −0 tests/iframes.py
  80. +4 −0 tests/is_element_present.py
  81. +4 −0 tests/is_text_present.py
  82. +5 −0 tests/mouse_interaction.py
  83. +6 −0 tests/status_code.py
  84. +5 −0 tests/test_browser.py
  85. +4 −0 tests/test_element_list.py
  86. +4 −0 tests/test_meta.py
  87. +6 −2 tests/test_request_handler.py
  88. +5 −0 tests/test_webdriver_chrome.py
  89. +5 −0 tests/test_webdriver_firefox.py
  90. +5 −0 tests/test_webdriver_remote.py
  91. +5 −0 tests/test_zopetestbrowser.py
  92. +6 −0 tests/type.py
  93. +7 −0 tests/within_elements.py
View
4 .coveragerc
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
[report]
exclude_lines =
raise NotImplementedError
View
4 .travis.yml
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
language: python
python:
- "2.7"
View
7 .travis_before.bash
@@ -1,4 +1,9 @@
- #!/bin/bash
+#!/bin/bash
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
View
59 AUTHORS
@@ -1,26 +1,35 @@
-splinter is written and maintained by cobrateam and various contributors:
+# This is the official list of splinter authors for copyright purposes.
- * andrewsmedina (Andrews Medina)
- * hugobr (Hugo Lopes Tavares)
- * nsigustavo (Gustavo Rezende)
- * franciscosouza (Francisco Souza)
- * flaviamissi (Flavia Missi)
- * douglascamata (Douglas Camata)
- * tarsis (Tarsis Azevedo)
- * bernardofire (Bernardo B. Marques)
- * fabiomcosta (Fábio M. Costa)
- * douglas (Douglas Soares de Andrade)
- * nyxtom (Thomas Holloway)
- * gabrielfalcao (Gabriel Falcão)
- * siminino (Victor de Oliveira Areas)
- * gabriellima (Gabriel Lima de Oliveira)
- * douglasmiranda (Douglas Miranda)
- * rodrigomanhaes (Rodrigo Manhães)
- * rafaelcaricio (Rafael Carício)
- * diofeher (Diógenes Augusto Fernandes Herminio)
- * heynemann (Bernardo Heynemann)
- * igorsobreira (Igor Sobreira)
- * tatiana (Tatiana Al-Chueyr)
- * mayzaoliveira (Mayza de Oliveira)
- * SergioJorge (Sergio Jorge)
- * skoczen (Steven Skoczen)
+Adam Victor Nazareth Brandizzi
+Álvaro Justen
+Andrews Medina
+Bernardo Barreto Marques
+Bernardo Heynemann
+Brian S. Corbin
+David Francisco
+Diógenes Augusto Fernandes Herminio
+Douglas Camata
+Douglas Miranda
+Douglas Soares de Andrade
+Fábio Miranda Costa
+Flavia Missi
+Flávio Ribeiro
+Francisco Souza
+Gabriel Falcão
+Gabriel Lima de Oliveira
+Gustavo Rezende
+Hugo Lopes Tavares
+Igor Sobreira
+Juha Mustonen
+Lucas R. Martins
+Marcio Mazza
+Mayza de Oliveira
+Rafael Carício
+Rodrigo Manhães
+Rômulo Machado
+Sergio Jorge
+Steven Skoczen
+Tarsis Azevedo
+Tatiana Al-Chueyr
+Thomas Holloway
+Victor de Oliveira Areas
View
29 LICENSE
@@ -0,0 +1,29 @@
+Copyright (c) 2012, splinter authors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation and/or
+other materials provided with the distribution.
+
+ * Neither the name of Splinter nor the names of its contributors may be used to
+endorse or promote products derived from this software without specific prior
+written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
4 Makefile
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
all: test
clean:
View
4 README.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. image:: https://secure.travis-ci.org/cobrateam/splinter.png
:target: http://travis-ci.org/cobrateam/splinter
View
4 docs/api/cookie-manager.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Splinter cookies API documentation
:keywords: splinter, python, api documentation, cookies, cookies manipulation
View
4 docs/api/driver-and-element-api.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Splinter API documentation for DriverAPI and ElementAPI
:keywords: splinter, python, api documentation, api, driverapi, elementapi, driver creation
View
4 docs/api/element-list.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Splinter API documentation for ElementList
:keywords: splinter, python, api documentation, api, DOM manipulation, element list
View
4 docs/api/exceptions.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Splinter exceptions API documentation
:keywords: splinter, python, api documentation, exceptions
View
4 docs/api/index.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Splinter API documentation
:keywords: splinter, python, api documentation, api
View
4 docs/api/request-handling.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Splinter request handling API documentation
:keywords: splinter, python, api documentation, request handling
View
4 docs/browser.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Browser
:keywords: splinter, python, tutorial, browser, firefox, chrome, zope, testebrowser
View
4 docs/community.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Find the CobraTeam and Splinter communities.
:keywords: splinter, python, cobrateam, community, atdd, tests, acceptance tests, web applications
View
4 docs/contribute.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Find how to contribute with splinter.
:keywords: splinter, python, contribution, open source, testing, web application, atdd
View
4 docs/contribute/setting-up-your-development-environment.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Setting up your development environment for Splinter.
:keywords: splinter, open source, python, contribute, development environment
View
4 docs/contribute/writing-new-drivers.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Find how to write new drivers for splinter.
:keywords: splinter, python, contribution, open source, testing, web application, atdd, drivers
View
4 docs/cookies.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Cookie manipulation
:keywords: splinter, python, tutorial, documentation, cookies
View
4 docs/drivers/chrome.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: How to use splinter with Chrome webdriver
:keywords: splinter, python, tutorial, how to install, installation, chrome, selenium
View
4 docs/drivers/firefox.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: How to use splinter with Firefox webdriver
:keywords: splinter, python, tutorial, how to install, installation, firefox, selenium
View
4 docs/drivers/installing_pyqt.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Learn how to install PyQt4 on your machine.
:keywords: splinter, python, cobrateam, pyqt, pyqt4
View
4 docs/drivers/zope.testbrowser.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: How to use splinter with zope.testbrowser
:keywords: splinter, python, tutorial, how to install, installation, zope, testbrowser, zope.testbrowser
View
4 docs/elements-in-the-page.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Dealing with elements in the page.
:keywords: splinter, python, tutorial, documentation, forms, click links, get value
View
4 docs/finding.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Finding elements
:keywords: splinter, python, tutorial, find, selectors
View
4 docs/http-status-code-and-exception.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Dealing with HTTP status code and HTTP exceptions with Splinter
:keywords: splinter, python, tutorial, documentation, exception, http error, status code
View
4 docs/iframes-and-alerts.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Automatic interaction with alerts, prompts and iframes
:keywords: splinter, python, tutorial, alerts, prompts, iframes, acceptance tests
View
4 docs/index.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Documentation for splinter, an open source tool for testing web applications
:keywords: splinter, python, tutorial, documentation, web application, tests, atdd, tdd, acceptance tests
View
4 docs/install.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Install guide for splinter
:keywords: splinter, python, tutorial, how to install, installation
View
4 docs/javascript.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Executing javascript
:keywords: splinter, python, tutorial, javascript
View
4 docs/matchers.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Checking if a text pattern is or not present
:keywords: splinter, python, tutorial, element
View
4 docs/mouse-interaction.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Mouse interatcion.
:keywords: splinter, python, tutorial, documentation, mouse interaction, mouseover, mouseout, doube click, mouse events
View
4 docs/news.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on earlier versions.
:keywords: splinter, python, news, documentation, tutorial, web application
View
4 docs/news/0.0.1.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.0.1.
:keywords: splinter 0.0.1, python, news, documentation, tutorial, web application
View
4 docs/news/0.0.2.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.0.2.
:keywords: splinter 0.0.2, python, news, documentation, tutorial, web application
View
4 docs/news/0.0.3.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.0.3.
:keywords: splinter 0.0.3, python, news, documentation, tutorial, web application
View
4 docs/news/0.1.1.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.1.1.
:keywords: splinter 0.1.1, python, news, documentation, tutorial, web application
View
4 docs/news/0.1.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.1.
:keywords: splinter 0.1, python, news, documentation, tutorial, web application
View
4 docs/news/0.2.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.2.
:keywords: splinter 0.2, python, news, documentation, tutorial, web application
View
4 docs/news/0.3.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.3.
:keywords: splinter 0.3, python, news, documentation, tutorial, web application
View
4 docs/news/0.4.1.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.4.1.
:keywords: splinter 0.4.1, python, news, documentation, tutorial, web application
View
4 docs/news/0.4.2.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.4.2.
:keywords: splinter 0.4.2, python, news, documentation, tutorial, web application
View
4 docs/news/0.4.3.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.4.3.
:keywords: splinter 0.4.3, python, news, documentation, tutorial, web application
View
4 docs/news/0.4.4.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.4.4.
:keywords: splinter 0.4.4, python, news, documentation, tutorial, web application
View
4 docs/news/0.4.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: New splinter features on version 0.4.
:keywords: splinter 0.4, python, news, documentation, tutorial, web application
View
4 docs/screenshot.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Finding elements
:keywords: splinter, python, tutorial, screenshot
View
4 docs/tutorial.rst
@@ -1,3 +1,7 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
.. meta::
:description: Splinter tutorial, learn how to test your web applications
:keywords: splinter, python, tutorial, documentation, web application, tests, atdd, tdd, acceptance tests
View
5 run_tests.py
@@ -1,4 +1,9 @@
#!/usr/bin/env python
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
# -*- coding: utf-8 -*-
import argparse
import sys
View
4 run_tests_within_Xephyr.sh
@@ -1,5 +1,9 @@
#!/bin/bash
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
active_displays=$(ls /tmp/.X*-lock | sed 's/\/tmp\/\.X\(.*\)-lock/\1/')
last_active_display=$(echo "$active_displays" | sort -r | head -1)
new_display=$(echo "$last_active_display + 1" | bc)
View
5 samples/test_facebook_events.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
"""
This snippet show how to "test" a Facebook feature: the creation of an event.
View
4 samples/test_google_search.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import unittest
from splinter import Browser
View
6 setup.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from setuptools import setup, find_packages
README = open('README.rst').read()
View
4 splinter/__init__.py
@@ -1,2 +1,6 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
__version__ = '0.4.4'
from splinter.browser import Browser
View
5 splinter/browser.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from splinter.driver.webdriver.firefox import WebDriver as FirefoxWebDriver
from splinter.driver.webdriver.remote import WebDriver as RemoteWebDriver
from splinter.driver.webdriver.chrome import WebDriver as ChromeWebDriver
View
5 splinter/cookie_manager.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from splinter.meta import InheritedDocs
class CookieManagerAPI(object):
View
5 splinter/driver/__init__.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-:
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
"""
This module contains the basic API for splinter drivers and elemnts.
"""
View
6 splinter/driver/webdriver/__init__.py
@@ -1,5 +1,9 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
import logging
import subprocess
View
4 splinter/driver/webdriver/chrome.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from selenium.webdriver import Chrome
from selenium.webdriver.chrome.options import Options
from splinter.driver.webdriver import BaseWebDriver, WebDriverElement
View
6 splinter/driver/webdriver/cookie_manager.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from splinter.cookie_manager import CookieManagerAPI
View
6 splinter/driver/webdriver/firefox.py
@@ -1,5 +1,9 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import subprocess
from selenium.webdriver import Firefox
View
6 splinter/driver/webdriver/remote.py
@@ -1,5 +1,9 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import subprocess
from selenium.webdriver import Remote
View
6 splinter/driver/zopetestbrowser.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
from lxml.cssselect import CSSSelector
View
6 splinter/element_list.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from splinter.exceptions import ElementDoesNotExist
View
5 splinter/exceptions.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+
class DriverNotFoundError(Exception):
"""
Exception raised when a driver is not found.
View
5 splinter/meta.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+
class InheritedDocs(type):
def __new__(mcs, class_name, bases, dict):
View
3  splinter/request_handler/__init__.py
@@ -0,0 +1,3 @@
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
View
6 splinter/request_handler/request_handler.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import httplib
from urlparse import urlparse
from status_code import StatusCode
View
5 splinter/request_handler/status_code.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+
class HttpResponseError(Exception):
"""
Represents an HTTP response error.
View
9 splinter/within.py
@@ -1,3 +1,8 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
class Within(object):
@@ -10,7 +15,7 @@ def find_by_css(self, element):
Performs a find in the element context using the provided selector.
"""
for context_elements in self.within_selector:
- final_elements = context_elements.find_by_css(element)
+ final_elements = context_elements.find_by_css(element)
return final_elements
def find_by_xpath(self, element):
@@ -18,5 +23,5 @@ def find_by_xpath(self, element):
Performs a find in the element context using the provided selector.
"""
for context_elements in self.within_selector:
- final_elements = context_elements.find_by_xpath(element)
+ final_elements = context_elements.find_by_xpath(element)
return final_elements
View
6 tests/__init__.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import os
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
View
7 tests/async_finder.py
@@ -1,3 +1,10 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+
class AsyncFinderTests(object):
def test_find_by_css_should_found_an_async_element(self):
View
4 tests/base.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
from async_finder import AsyncFinderTests
View
7 tests/click_elements.py
@@ -1,3 +1,10 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+
class ClickElementsTest(object):
def test_click_links(self):
View
4 tests/cookies.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
class CookiesTest(object):
View
4 tests/element_does_not_exist.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from splinter.exceptions import ElementDoesNotExist
View
20 tests/fake_webapp.py
@@ -1,5 +1,10 @@
-from flask import Flask
-from flask import request
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+from flask import Flask, request
EXAMPLE_APP = "http://localhost:5000/"
@@ -150,10 +155,10 @@
$('.pergunta').click(function() { nome = prompt('What is your name?'); alert(nome); });
- $('.confirmacao').click(function() {
- answer = confirm('Should I continue?');
+ $('.confirmacao').click(function() {
+ answer = confirm('Should I continue?');
if (answer)
- alert("You say I should");
+ alert("You say I should");
else
alert("You say I should not");
});
@@ -223,10 +228,12 @@ def type():
def get_name():
return "My name is: Master Splinter"
+
@app.route('/useragent', methods=['GET'])
def get_user_agent():
return request.user_agent.string
+
@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
if request.method == 'POST':
@@ -237,10 +244,12 @@ def upload_file():
return '|'.join(buffer)
+
@app.route('/foo')
def foo():
return "BAR!"
+
@app.route('/query', methods=['GET'])
def query_string():
if request.query_string == "model":
@@ -248,6 +257,7 @@ def query_string():
else:
abort(500)
+
def start_flask_app(host, port):
"""Runs the server."""
app.run(host=host, port=port)
View
4 tests/find_elements.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
from splinter.driver import ElementAPI
View
4 tests/form_elements.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
View
4 tests/iframes.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
View
4 tests/is_element_present.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
View
4 tests/is_text_present.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
class IsTextPresentTest(object):
View
5 tests/mouse_interaction.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from __future__ import with_statement
import warnings
View
6 tests/status_code.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from fake_webapp import EXAMPLE_APP
from splinter.request_handler.status_code import HttpResponseError
View
5 tests/test_browser.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+
from __future__ import with_statement
import __builtin__
View
4 tests/test_element_list.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
try:
import unittest2 as unittest
except ImportError:
View
4 tests/test_meta.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
try:
import unittest2 as unittest
except ImportError:
View
8 tests/test_request_handler.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import os
try:
@@ -65,10 +70,9 @@ def test_should_not_connect_to_non_http_protocols(self):
request = RequestHandler()
request.connect(mockfile_path)
self.assertTrue(request.status_code.is_success())
-
+
def test_should_connect_to_pages_with_query_string(self):
request = RequestHandler()
url = EXAMPLE_APP + "query?model"
request.connect(url)
self.assertTrue(request.status_code.is_success())
-
View
5 tests/test_webdriver_chrome.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import os
try:
View
5 tests/test_webdriver_firefox.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import os
try:
View
5 tests/test_webdriver_remote.py
@@ -1,5 +1,9 @@
# -*- coding: utf-8 -*-
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
try:
import unittest2 as unittest
except ImportError:
@@ -11,6 +15,7 @@
import subprocess
+
def selenium_server_is_running():
ps = subprocess.Popen(['ps', '-o', 'command'], stdout=subprocess.PIPE).communicate()[0]
return 'selenium-server' in ps
View
5 tests/test_zopetestbrowser.py
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
import os
try:
View
6 tests/type.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
from fake_webapp import EXAMPLE_APP
View
7 tests/within_elements.py
@@ -1,3 +1,10 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2012 splinter authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+
class Within(object):
def test_return_a_list_with_elements(self):
Please sign in to comment.
Something went wrong with that request. Please try again.