UNPKG

@christian-bromann/webdriverio

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

15 lines (12 loc) 507 B
describe('orientation commands', () => { it('should get current orientation (getOrientation)', async function () { (await this.client.getOrientation()).should.be.equal('portrait') }) it('should change the orientation (setOrientation)', async function () { await this.client.setOrientation('landscape'); (await this.client.getOrientation()).should.be.equal('landscape') }) after(async function () { await this.client.setOrientation('portrait') }) })