After I logIn in my app, I need to refresh the home screen of the app. Is there any way to do this? I saw the
Location.reload()
in JavaScript, but I am unable to implement it on my kind of functions which are for example:
wd.addPromiseChainMethod('refresh', () => {
return driver.waitForElementById(App.RefreshId,DEFAULT_TIMEOUT2)
.click()
.save()
})