Pages

refresh() in protractor ?

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");
});
});
Output:
It will refresh the current web page.
refresh in protractor
Please comment below to feedback or ask questions.

No comments:

Post a Comment

Please comment below to feedback or ask questions.