mirror of
https://github.com/appium/appium.git
synced 2026-02-10 03:38:49 -06:00
use back() instead of finding Back element
This commit is contained in:
@@ -14,12 +14,11 @@ describe('uicatalog - basic -', function () {
|
||||
if (env.FAST_TESTS) {
|
||||
beforeEach(function (done) {
|
||||
driver
|
||||
.elementByNameOrNull('Back')
|
||||
.then(function (el) { if (el) return el.click(); })
|
||||
.nodeify(done);
|
||||
.back()
|
||||
.nodeify(function () { done(); });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
it('should confirm element is not visible', function (done) {
|
||||
driver
|
||||
.elementByTagName('tableCell').click()
|
||||
|
||||
Reference in New Issue
Block a user