Test ExtJS Combo Box CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
7click extjscombobutton by text "Four"//input[contains(@value,'Four')]/ancestor::table[1]/descendant::td[2]None
8click exjscomboitem by row 1//div[@class='x-boundlist-list-ct']/descendant::li[1]None
9assert that input by name "optionBox" is "One"//input[@name='optionBox']None
11click extjscombobutton by name "optionBox"//input[@name='optionBox']/ancestor::table[1]/descendant::td[2]None
12click exjscomboitem by text "Two"//div[@class='x-boundlist-list-ct']/descendant::li[contains(.,'Two')]None
13assert that input by name "optionBox" is "Two"//input[@name='optionBox']None
15click extjscombobutton by name "optionBox"//input[@name='optionBox']/ancestor::table[1]/descendant::td[2]None
16click exjscomboitem by text "Three"//div[@class='x-boundlist-list-ct']/descendant::li[contains(.,'Three')]None
17assert that input by name "optionBox" is "Three"//input[@name='optionBox']None
19clear input by name "optionBox"//input[@name='optionBox']None
20type "Not an option" into input by name "optionBox"//input[@name='optionBox']None
21assert that input by name "optionBox" is "Not an option"//input[@name='optionBox']None


Test HTML Select CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
30assert that select by name "myHtmlSelect" is "delta"//select[@name='myHtmlSelect']None
31click option by text "Alpha"//option[contains(.,'Alpha')]None
32assert that select by name "myHtmlSelect" is "alpha"//select[@name='myHtmlSelect']None
33click option by text "Bravo"//option[contains(.,'Bravo')]None
34assert that select by name "myHtmlSelect" is "bravo"//select[@name='myHtmlSelect']None
35click option by row "myHtmlSelect//3"//select[@name='myHtmlSelect']/descendant::option[3]None
36assert that select by name "myHtmlSelect" is "charlie"//select[@name='myHtmlSelect']None


Test ExtJS Radio Buttons CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
44click extjsradio by text "M"//input[contains(@class,'x-form-radio')]/ancestor::td[1]/descendant::label[contains(.,'M')]/ancestor::td[1]/descendant::inputNone
45click extjsradio by text "L"//input[contains(@class,'x-form-radio')]/ancestor::td[1]/descendant::label[contains(.,'L')]/ancestor::td[1]/descendant::inputNone
46click extjsradio by text "XL"//input[contains(@class,'x-form-radio')]/ancestor::td[1]/descendant::label[contains(.,'XL')]/ancestor::td[1]/descendant::inputNone


Test Html Radio Buttons CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
54assert that radio by value "Milk" is not selected//input[contains(@value,'Milk') and contains(@type,'radio')]None
55assert that radio by value "Sugar" is not selected//input[contains(@value,'Sugar') and contains(@type,'radio')]None
57click radio by value "Milk"//input[contains(@value,'Milk') and contains(@type,'radio')]None
58assert that radio by value "Milk" is selected//input[contains(@value,'Milk') and contains(@type,'radio')]None
59assert that radio by value "Sugar" is not selected//input[contains(@value,'Sugar') and contains(@type,'radio')]None
61click radio by value "Sugar"//input[contains(@value,'Sugar') and contains(@type,'radio')]None
62assert that radio by value "Milk" is not selected//input[contains(@value,'Milk') and contains(@type,'radio')]None
63assert that radio by value "Sugar" is selected//input[contains(@value,'Sugar') and contains(@type,'radio')]None


Test ExtJS Check Boxes CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
71click extjscheckbox by text "Anchovies"//input[contains(@class,'x-form-checkbox')]/ancestor::td[1]/descendant::label[contains(.,'Anchovies')]/ancestor::td[1]/descendant::inputNone
72click extjscheckbox by text "Artichoke"//input[contains(@class,'x-form-checkbox')]/ancestor::td[1]/descendant::label[contains(.,'Artichoke')]/ancestor::td[1]/descendant::inputNone
73click extjscheckbox by text "Bacon"//input[contains(@class,'x-form-checkbox')]/ancestor::td[1]/descendant::label[contains(.,'Bacon')]/ancestor::td[1]/descendant::inputNone


Test HTML Check Boxes CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
81assert that checkbox by name "htmlCheckBoxName" is "HTML Check Box Value"//input[contains(@name,'htmlCheckBoxName') and contains(@type,'checkbox')]None
82assert that checkbox by name "htmlCheckBoxName" is not selected//input[contains(@name,'htmlCheckBoxName') and contains(@type,'checkbox')]None
83click checkbox by name "htmlCheckBoxName"//input[contains(@name,'htmlCheckBoxName') and contains(@type,'checkbox')]None
84assert that checkbox by value "HTML Check Box Value" is selected//input[contains(@value,'HTML Check Box Value') and contains(@type,'checkbox')]None


Test ExtJS Dates CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
92assert that input by name "extJsDateFieldName" is "01/01/2012"//input[@name='extJsDateFieldName']None
93click extjsdatebutton by name "extJsDateFieldName"//input[contains(@name,'extJsDateFieldName')]/ancestor::table[1]/descendant::divNone
94click link by text "25"//a[contains(.,'25')]None
95assert that input by name "extJsDateFieldName" is "01/25/2012"//input[@name='extJsDateFieldName']None


Test ExtJS HTML Editor CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
103switch to extjshtmleditor by default method//iframe[contains(@class,'x-htmleditor-iframe')]None
104assert that element by xpath "//body" contains "This is some HTML"//bodyNone
105clear element by xpath "//body"//bodyNone
106type "More text here" into element by xpath "//body"//bodyNone
107assert that element by xpath "//body" contains "More text here"//bodyNone
108switch to default contentNoneNone
109assert that radio by value "Milk" is not selected//input[contains(@value,'Milk') and contains(@type,'radio')]None


Test ExtJS Spinner CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
117assert that input by name "bottlesField" is "99"//input[@name='bottlesField']None
118clear input by name "bottlesField"//input[@name='bottlesField']None
119type "100" into input by name "bottlesField"//input[@name='bottlesField']None
120assert that input by name "bottlesField" is "100"//input[@name='bottlesField']None


Test Text Area CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
128assert that textarea by name "messageFieldName" contains "This is some text"//textarea[contains(@name,'messageFieldName')]None
129clear textarea by name "messageFieldName"//textarea[contains(@name,'messageFieldName')]None
130assert that textarea by name "messageFieldName" is ""//textarea[contains(@name,'messageFieldName')]None
131type "I changed the value" into textarea by name "messageFieldName"//textarea[contains(@name,'messageFieldName')]None
132assert that textarea by name "messageFieldName" is "I changed the value"//textarea[contains(@name,'messageFieldName')]None


Test ExtJS Color Picker CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
140click extjscoloroption by value "00FFFF"//div[contains(@class,'x-color-picker')]/descendant::a[contains(@class,'color-00FFFF')]None
141click extjscoloroption by value "00000"//div[contains(@class,'x-color-picker')]/descendant::a[contains(@class,'color-00000')]None


Test ExtJS Slider CHROME

http://automation.appfoundation.com/1.0/extjs/form4.html
Line Action XPath Result Messages
149assert that extjsslider by default method is "50"//div[contains(@class,'x-slider')]None
150drag and drop by "30" and "0" extjsslider by default method//div[contains(@class,'x-slider')]None
151assert that extjsslider by default method is "90"//div[contains(@class,'x-slider')]None