How to enter value into textbox:
How to click a button
How to refresh a window
How to get the text of a particular web element
var text = js.executeScript("return document.getElementById('btn2').innerHTML").toString(); console.log("WebElement Text is : "+ text);
How to get the title of the WebPage:
How to scroll vertically for certain pixels, below code vertically scrolls 500 pixels towards down.
How to scroll till the bottom of the web page:
How to scroll to a particular element:
How to navigate back to page
How to navigate to next page:
Article is written by Pavan (a) KarthiQ. Well, I am serving notice period in an MNC, Bangalore. I thought to enrich every person knowledge a little, I always have a feeling, when we teach something, we will learn more than what you know.
Knowledge is the only thing that doubles when you spend it.
I have also created the reporter for Protractor Jasmine. Use for your projects without any hesitation