protractor screen size 1

protractor screen size

await browser.driver.manage().window().maximize();

Here is what the above code is Doing:
1. We are using the async keyword to tell the browser that we are going to be using asynchronous code.
2. We are using the await keyword to tell the browser to wait for the browser to be launched before moving on to the next line of code.
3. We are using the async keyword to tell the browser that we are going to be using asynchronous code.
4. We are using the await keyword to tell the browser to wait for the browser to be maximized before moving on to the next line of code.

Similar Posts