mirror of
https://github.com/appium/appium.git
synced 2026-02-07 01:58:55 -06:00
add test to prove we get an array even when there's just one id
This commit is contained in:
@@ -89,6 +89,14 @@ describe("apidemo - find elements -", function () {
|
||||
.should.eventually.have.length.at.least(10)
|
||||
.nodeify(done);
|
||||
});
|
||||
it('should find multiple elements by resource-id even when theres just one', function (done) {
|
||||
driver
|
||||
.elementsById('android:id/home')
|
||||
.then(function (els) {
|
||||
els.length.should.equal(1);
|
||||
})
|
||||
.nodeify(done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('find element(s) from element', function () {
|
||||
|
||||
Reference in New Issue
Block a user