Merge pull request #3416 from 0x1mason/3185

Adding apostrophe in id regression test for #3185
This commit is contained in:
Jonathan Lipps
2014-08-18 15:40:36 -07:00
4 changed files with 13 additions and 2 deletions

View File

@@ -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);
});
});

View File

@@ -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) {