OK
Size: a a a
OK
ab
OK
const browser1 = browser
const browser2 = await browser.forkNewDriverInstance().ready
const elem1 = browser1.$(‘div’)
const elem2 = browser2.$(‘div’)
await browser1.restart()
await browser2.restart()
elem2.click() // OK!m
ab
const browser1 = browser
const browser2 = await browser.forkNewDriverInstance().ready
const elem1 = browser1.$(‘div’)
const elem2 = browser2.$(‘div’)
await browser1.restart()
await browser2.restart()
elem2.click() // OK!OK
ab
OK
OK
const home = null;
describe(’Some feature’, function () {
beforeEach(async function () {
await browser.restart()
home = new HomePage();
})
it(‘should work’, async function () {
await home.open()
await home.logo.click()
})
})
class HomePage {
constructor() {
this.logo = $(‘img.logo’)
}
async open() {
browser.get(‘/‘)
}
}
OK
const home = null;
describe(’Some feature’, function () {
beforeEach(async function () {
await browser.restart()
home = new HomePage();
})
it(‘should work’, async function () {
await home.open()
await home.logo.click()
})
})
class HomePage {
constructor() {
this.logo = $(‘img.logo’)
}
async open() {
browser.get(‘/‘)
}
}
m
OK
describe(’Some feature’, function () {
beforeEach(async function () {
await browser.restart()
})
it(‘should work’, async function () {
await home.open()
await home.logo.click()
})
})m
ab
ab
m
ab
ab
m
m