get() command is use to open a new web page in the current browser.
Get Title Command
getTitle() command is use to get the title of the current page.
Get Current URL Command
getCurrentUrl() command is use to get the URL of the page currently loaded in the browser.
close() command is use to close the current window of the browser, if it’s the last window it will close the browser.
quit() command is use to quit the browser and all the opened windows in the browser.
Get Page Source Command
Purpose: This command is use to get the source of the last loaded page.
to() command is use to navigate on specific page or URL in between the test Command :
Parameters : url – The URL to load. It is best to use a fully qualified URL
forward() command is use to go on to next page like browser’s forward button.
back() command is use to go back to previous page like browser’s back button.
refresh() command is use to refresh the current page.