testing/marionette/atoms/HOWTO

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 These atoms are generated from the selenium trunk. They are minified versions of what's in the trunk,
     2 optimized to run on Firefox. To generate them, clone the repo:
     4     svn checkout http://selenium.googlecode.com/svn/trunk/ selenium-read-only 
     6 then run the Google closure compiler and specify which atom you'd like to get.
     7 For example, this will generate the "get_text" atom:
     9     cd selenium-read-only
    10     ./go //javascript/webdriver/atoms:get_text:firefox
    12 This generates the atom, which is a function. You'll need to assign that function to a variable of your choice 
    13 which you can then import, i.e.: you'll need to modify the atom with a variable assignment:
    15   var myVar = <atom code>
    17 You can now import this atom and call it with myVar(). Please note the name of the function as a comment above this line to help readability in the atoms file.
    19 For more information on atoms, refer to http://code.google.com/p/selenium/wiki/AutomationAtoms#Atoms_Summary
    21 Currently bundled atoms (please update as you add more):
    22 - clearElement
    23 - click
    24 - getAttributeValue
    25 - getElementText
    26 - isElementDisplayed
    27 - isElementEnabled
    28 - isElementSelected
    29 - sendKeysToElement/type

mercurial