If user clicks Back button of the Browser, then we need to use below command
Simulates the user clicking the “back” button on their browser
If the user wants to press the refresh key or button in browser.
Simulates the user clicking the “Refresh” button on their browser.
Related Page: Automation Selenium RC Using TestNG - Selenium
Enter key simulation
If user press Enter button from key board, then we need to use below command.
If a user hover the mouse on an element
If you want to execute specific step
locator - an element locator
Briefly changes the background Color of the specified element yellow. Useful for debugging.
Madhuri is a Senior Content Creator at MindMajix. She has written about a range of different topics on various technologies, which include, Splunk, Tensorflow, Selenium, and CEH. She spends most of her time researching on technology, and startups. Connect with her via LinkedIn and Twitter .