background preloader

Selenium + Python

Facebook Twitter

Автоматизация для ленивых тестировщиков. Selenium + Python + Behave (BDD) / Доклады / SQA Days. Игорь Хрол. Seleniumworks: Keys in Selenium script. Key combinations made easier through Actions.

Seleniumworks: Keys in Selenium script

Some of the popular keys were illustrated in this section; Similar key functions can be used for other keys from the image.Enter/Returndriver.findElement(By.id("Value")).sendKeys(Keys.RETURN);or|driver.findElement(By.id("Value")).sendKeys(Keys.ENTER); Element — Documentation by YARD 0.8.1. Get the value of a the given attribute of the element.

Element — Documentation by YARD 0.8.1

Will return the current value, even if this has been modified after the page has been loaded. More exactly, this method will return the value of the given attribute, unless that attribute is not present, in which case the value of the property with the same name is returned. If neither value is set, nil is returned. The "style" attribute is converted as best can be to a text representation with a trailing semi-colon.

The following are deemed to be "boolean" attributes, and will return either "true" or "false": 25.3. unittest — Unit testing framework. New in version 2.1.

25.3. unittest — Unit testing framework

(If you are already familiar with the basic concepts of testing, you might want to skip to the list of assert methods.) The Python unit testing framework, sometimes referred to as “PyUnit,” is a Python language version of JUnit, by Kent Beck and Erich Gamma. JUnit is, in turn, a Java version of Kent’s Smalltalk testing framework. Each is the de facto standard unit testing framework for its respective language. unittest supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework. To achieve this, unittest supports some important concepts: test fixture A test fixture represents the preparation needed to perform one or more tests, and any associate cleanup actions.

Test case A test case is the smallest unit of testing. Test suite A test suite is a collection of test cases, test suites, or both. Test runner. Share and Discover the best programming tutorials online. Установка и настройка PyCharm в Ubuntu 12.04. По роду своих занятий я всегда стараюсь избегать максималистских выражений, вроде "лучший ...

Установка и настройка PyCharm в Ubuntu 12.04

", "самый ... " и пр. Но о PyCharm могу сказать без тени сомнения, что это - самая мощная среда разработки приложений на Python / Django. Под катом - как установить и настроить PyCharm в Ubuntu 12.04 (или других дистрибутивах Linux) Как установить PyCharm в Ubuntu. Selenium Tutorials: 31+ Best Free Selenium Training Tutorials. After hundreds of requests from STH readers, today we are finally launching our FREE Selenium Tutorial series.

Selenium Tutorials: 31+ Best Free Selenium Training Tutorials

In this Selenium training series we will cover all Selenium testing concepts and its packages in detail with easy to understand practical examples. These Selenium tutorials are helpful for beginner to advanced level Selenium users. Starting from the very basic Selenium concepts tutorial, we will gradually move on to the advanced topics like Framework creation, Selenium Grid and Cucumber BDD. Note: We will be increasing our article posting frequency for this series. TESTHEAD: Practicum. WebDriver: нюансы использования.

Selenium - автоматизация веб-браузеров - Selenium 2.0 и WebDriver. Примечание: Данный раздел не завершен.

Selenium - автоматизация веб-браузеров - Selenium 2.0 и WebDriver

В настоящий момент раздел находится в стадии написания. Мы уверены в том, что сведения, приведенные здесь, точны. Но мы будем постепенно дополнять этот раздел. При этом мы также будем редактировать и рецензировать данный текст. Когда надо использовать Selenium Server В зависимости от того, каким образом вы намереваетесь использовать Selenium, вам может потребоваться Selenium Server. Другой причиной, почему вам может потребоваться Selenium Server, может быть использование Selenium Grid для распределенного выполнения тестов.

Создание проекта для разработки тестов с использованием WebDriver Действия, необходимые для создания программного проекта, позволяющего разрабатывать тесты с использованием Selenium, зависят от того, на каком языке программирования и с помощью каких сред разработки вы собираетесь это делать. Java Самый простой способ для этого языка программирования - использовать Maven для создания проекта. <? 7. WebDriver API — Selenium Python Bindings 2 documentation. Note This is not an official documentation.

7. WebDriver API — Selenium Python Bindings 2 documentation

Official API documentation is available here. This chapter cover all the interfaces of Selenium WebDriver. Recommended Import Style The API definitions in this chapter shows the absolute location of classes. From selenium import webdriver Then, you can access the classes like this: 2. Getting Started — Selenium Python Bindings 2 documentation. 2.1.

2. Getting Started — Selenium Python Bindings 2 documentation

Simple Usage¶ If you have installed Selenium Python bindings, you can start using it from Python like this. Selenium Tutorial for Beginners.