testing/marionette/atoms/HOWTO

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/marionette/atoms/HOWTO	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +These atoms are generated from the selenium trunk. They are minified versions of what's in the trunk,
     1.5 +optimized to run on Firefox. To generate them, clone the repo:
     1.6 +
     1.7 +    svn checkout http://selenium.googlecode.com/svn/trunk/ selenium-read-only 
     1.8 +
     1.9 +then run the Google closure compiler and specify which atom you'd like to get.
    1.10 +For example, this will generate the "get_text" atom:
    1.11 +
    1.12 +    cd selenium-read-only
    1.13 +    ./go //javascript/webdriver/atoms:get_text:firefox
    1.14 +
    1.15 +This generates the atom, which is a function. You'll need to assign that function to a variable of your choice 
    1.16 +which you can then import, i.e.: you'll need to modify the atom with a variable assignment:
    1.17 +
    1.18 +  var myVar = <atom code>
    1.19 +
    1.20 +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.
    1.21 +
    1.22 +For more information on atoms, refer to http://code.google.com/p/selenium/wiki/AutomationAtoms#Atoms_Summary
    1.23 +
    1.24 +Currently bundled atoms (please update as you add more):
    1.25 +- clearElement
    1.26 +- click
    1.27 +- getAttributeValue
    1.28 +- getElementText
    1.29 +- isElementDisplayed
    1.30 +- isElementEnabled
    1.31 +- isElementSelected
    1.32 +- sendKeysToElement/type

mercurial