selenium.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1555 afcdbddf3be5
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1509
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
.. -*- coding: utf-8; -*-
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
.. include:: HEADER.rst
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
===========
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
 Selenium.
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
===========
1525
1bd0bcaec05f Fix RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1511
diff changeset
     7
.. contents::
1509
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
Official docs.
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
==============
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
1511
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    12
  http://docs.seleniumhq.org/docs/
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    13
                TOC.
1509
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  http://docs.seleniumhq.org/docs/03_webdriver.jsp
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
                WebDriver
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
  https://code.google.com/p/selenium/w/list
1554
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    17
                Docs on Wiki about drivers and browser support.
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    18
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    19
WebDriver.
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    20
----------
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    21
1555
afcdbddf3be5 WebDriver.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1554
diff changeset
    22
 * http://code.google.com/p/selenium/wiki/FirefoxDriver
1554
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    23
 * http://code.google.com/p/selenium/wiki/InternetExplorerDriver
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    24
 * http://code.google.com/p/selenium/wiki/ChromeDriver
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    25
 * http://selendroid.io/mobileWeb.html - Android.
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    26
 * http://code.google.com/p/selenium/wiki/OperaDriver
1555
afcdbddf3be5 WebDriver.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1554
diff changeset
    27
 * http://htmlunit.sourceforge.net/ - HtmlUnit.
afcdbddf3be5 WebDriver.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1554
diff changeset
    28
   http://code.google.com/p/selenium/wiki/HtmlUnitDriver
1509
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
1550
6589f81b9c88 Russian translation of official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1525
diff changeset
    30
Tutorials.
6589f81b9c88 Russian translation of official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1525
diff changeset
    31
==========
6589f81b9c88 Russian translation of official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1525
diff changeset
    32
6589f81b9c88 Russian translation of official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1525
diff changeset
    33
  http://selenium2.ru/docs.html
6589f81b9c88 Russian translation of official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1525
diff changeset
    34
                Russian translation of official docs.
6589f81b9c88 Russian translation of official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1525
diff changeset
    35
1510
c03c377f509b com.thoughtworks.selenium.Selenium locator syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1509
diff changeset
    36
com.thoughtworks.selenium.Selenium locator syntax.
c03c377f509b com.thoughtworks.selenium.Selenium locator syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1509
diff changeset
    37
==================================================
c03c377f509b com.thoughtworks.selenium.Selenium locator syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1509
diff changeset
    38
c03c377f509b com.thoughtworks.selenium.Selenium locator syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1509
diff changeset
    39
 * http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/java/com/thoughtworks/selenium/Selenium.html
c03c377f509b com.thoughtworks.selenium.Selenium locator syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1509
diff changeset
    40
 * http://selenium-training.israelekpo.com/targeting-elements.txt
c03c377f509b com.thoughtworks.selenium.Selenium locator syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1509
diff changeset
    41
1509
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
Hi-level wrappers.
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    43
==================
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    45
Selenide.
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    46
---------
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    47
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
  https://github.com/codeborne/selenide/wiki/Selenide-vs-Selenium
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    49
                git repo
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
  http://ru.selenide.org/quick-start.html
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
                russian home page
486472c4ba6a Selenium official docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
1511
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    53
Graphene 2.
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    54
-----------
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    55
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    56
  https://docs.jboss.org/author/display/ARQGRA2/Home
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    57
                home page
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    58
  https://community.jboss.org/wiki/ArquillianGraphene2
c48567a6c6f9 Graphene
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1510
diff changeset
    59
                wiki page
1554
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    60
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    61
Set language preferences.
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    62
=========================
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    63
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    64
For FirefoxDriver::
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    65
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    66
  FirefoxProfile profile = new FirefoxProfile();
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    67
  profile.setPreference( "intl.accept_languages", "no,en-us,en" ); 
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    68
  WebDriver driver = new FirefoxDriver(profile);
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    69
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    70
See:
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    71
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    72
 * http://code.google.com/p/selenium/wiki/TipsAndTricks
7eadf0928d57 Set language preferences.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1550
diff changeset
    73