testing/marionette/atoms/HOWTO

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:26c67daa3070
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:
3
4 svn checkout http://selenium.googlecode.com/svn/trunk/ selenium-read-only
5
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:
8
9 cd selenium-read-only
10 ./go //javascript/webdriver/atoms:get_text:firefox
11
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:
14
15 var myVar = <atom code>
16
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.
18
19 For more information on atoms, refer to http://code.google.com/p/selenium/wiki/AutomationAtoms#Atoms_Summary
20
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