RandomSec/tests/windmill/js/basic.js
Stefano Mazzocchi 135f870061 - adding interactive test mode so one can use the Windmill IDE to make tests
(use ./gridworks test interactive)
- split the windmill tests between python and js
(the js one is just a silly test, waiting for Jeff to fill it up with more meaty stuff)


git-svn-id: http://google-refine.googlecode.com/svn/trunk@418 7d457c2a-affb-35e4-300a-418c747d4874
2010-04-07 22:56:46 +00:00

18 lines
1.3 KiB
JavaScript

// Generated by the windmill services transformer
var test_recordingSuite0 = new function() {
this.test_actions = [
{"params": {"link": "Food"}, "method": "click"},
{"params": {"timeout": "20000"}, "method": "waits.forPageLoad"},
{"params": {"xpath": "//div[@id='body']/div[1]/div[2]/table/tbody/tr[1]/td[3]/table/tbody/tr/td[2]/a", "timeout": "8000"}, "method": "waits.forElement"},
{"params": {"xpath": "//div[@id='body']/div[1]/div[2]/table/tbody/tr[1]/td[3]/table/tbody/tr/td[2]/a"}, "method": "click"},
{"params": {"xpath": "Error - Could not find a reliable locator for this node."}, "method": "click"},
{"params": {"xpath": "/html/body/div[5]/div/div[2]/div/table/tbody/tr[2]/td[1]/div/textarea"}, "method": "click"},
{"params": {"xpath": "/html/body/div[5]/div/div[2]/div/table/tbody/tr[2]/td[1]/div/textarea", "text": "value.split(\",\")[0]"}, "method": "type"},
{"params": {"xpath": "Error - Could not find a reliable locator for this node."}, "method": "click"},
{"params": {"link": "BEEF"}, "method": "click"},
{"params": {"xpath": "//div[@id='body']/div[1]/div[2]/table/tbody/tr[1]/td[4]/table/tbody/tr/td[2]/a"}, "method": "click"},
{"params": {"xpath": "Error - Could not find a reliable locator for this node."}, "method": "click"},
{"params": {"xpath": "//div[@id='body']/div[1]/div[1]/span/span"}, "method": "click"}
];
}