How to refresh() page in protractor ?
>> In protractor, we can refresh the current web page using refresh() method.
Please check below code script:
describe('Protractor - refresh()', function () {
beforeAll(async function () {
await browser.get("https://keeplearners.blogspot.com/2018/03/Angular-elements.html");
});
it('Code script to use refresh() in protractor', async function () {
await browser.refresh();
await console.log("Page refreshed");
});
});
No comments:
Post a Comment
Please comment below to feedback or ask questions.