added duplicate textfield test

This commit is contained in:
sebv
2014-03-15 01:48:47 +08:00
parent e7beefaa12
commit 90aa96e873

View File

@@ -71,6 +71,22 @@ describe('uicatalog - find element -', function () {
});
});
describe('findElementsByTagName textfield case', function () {
after(function () {
driver.clickBack();
});
it('should find only one textfield', function (done) {
driver
.elementsByTagName('cell').then(function (els) { return els[2]; })
.click()
.elementByName('Rounded')
.elementsByTagName('>', 'textfield')
.should.eventually.have.length(1)
.nodeify(done);
});
});
describe('findElement(s)ByXpath', function () {
var setupXpath = function (driver) {
return driver.elementByTagName('tableCell').click();