mirror of
https://github.com/appium/appium.git
synced 2026-02-11 04:20:00 -06:00
readded some tests, since they pass now
This commit is contained in:
@@ -75,13 +75,13 @@ describe("apidemo - find elements -", function () {
|
||||
.elementById("buttons_1_normal").text().should.become("Normal")
|
||||
.nodeify(done);
|
||||
});
|
||||
// TODO: find by resource id doesn't seem to work
|
||||
it('should find a single element by resource-id @skip-android-all', function (done) {
|
||||
|
||||
it('should find a single element by resource-id', function (done) {
|
||||
driver
|
||||
.elementById('android:id/home').should.eventually.exist
|
||||
.nodeify(done);
|
||||
});
|
||||
it('should find multiple elements by resource-id @skip-android-all', function (done) {
|
||||
it('should find multiple elements by resource-id', function (done) {
|
||||
driver
|
||||
.elementsById('android:id/text1')
|
||||
.should.eventually.have.length.at.least(10)
|
||||
@@ -156,13 +156,13 @@ describe("apidemo - find elements -", function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('find elements using accessibility_id locator strategy @now', function () {
|
||||
describe('find elements using accessibility_id locator strategy', function () {
|
||||
it('should find an element by name', function (done) {
|
||||
driver.element('accessibility_id', 'Animation').then(function (el) {
|
||||
el.should.exist;
|
||||
}).nodeify(done);
|
||||
});
|
||||
it('should return an array of one element if the plural "elements" is used @now', function (done) {
|
||||
it('should return an array of one element if the plural "elements" is used', function (done) {
|
||||
driver.elements('accessibility_id', 'Animation').then(function (els) {
|
||||
els.length.should.equal(1);
|
||||
}).nodeify(done);
|
||||
|
||||
Reference in New Issue
Block a user