mirror of
https://github.com/appium/appium.git
synced 2026-02-14 14:00:03 -06:00
Merge pull request #3416 from 0x1mason/3185
Adding apostrophe in id regression test for #3185
This commit is contained in:
Submodule submodules/ApiDemos updated: 8a7c7d735a...43889d79c5
Submodule submodules/sample-code updated: ded951dd19...5f8bf46247
@@ -18,4 +18,9 @@ describe("apidemo - find - by accessibility id", function () {
|
||||
els.length.should.equal(1);
|
||||
}).nodeify(done);
|
||||
});
|
||||
it('should find an element with a content-desc property containing an apostrophe', function (done) {
|
||||
driver.element('accessibility id', "Access'ibility").then(function (el) {
|
||||
el.should.exist;
|
||||
}).nodeify(done);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -110,6 +110,12 @@ describe('testapp - find element', function () {
|
||||
.nodeify(done);
|
||||
});
|
||||
|
||||
it('should find an element with accessibility id containing an apostrophe', function (done) {
|
||||
driver.element('accessibility id', "Access'ibility").then(function (el) {
|
||||
el.should.exist;
|
||||
}).nodeify(done);
|
||||
});
|
||||
|
||||
it('should not find element by incomplete class name but return respective error code', function (done) {
|
||||
driver.elementsByClassName('notAValidReference')
|
||||
.catch(function (err) {
|
||||
|
||||
Reference in New Issue
Block a user