Question
What are the different types of navigation commands

Answers

Following are the navigation commands:

navigate().back() – The above command requires no parameters and takes back the user to the previous webpage in the web browser’s history.

Sample code:

driver.navigate().back();



navigate().forward() –
This command lets the user to navigate to the next web page with reference to the browser’s history.

Sample code:

driver.navigate().forward();



navigate().refresh() –
This command lets the user to refresh the current web page there by reloading all the web elements.

Sample code:

driver.navigate().refresh();



navigate().to() –
This command lets the user to launch a new web browser window and navigate to the specified URL.

Sample code:

driver.navigate().to(“https://google.com”);   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Which Bollywood actor received Global Biodiversity Award 2014 by the Rainbow Foundation ?
  • Q Shamelessly rude
  • Q Explain in detail about buffer manager and its functionalities?
  • Q Explain MS-IDN
  • Q What incendiary gel weapon takes its name from its napthenic and palmitic acid constituents?
  • Q Who are not protected against inflation?
  • Q Write the file extension for a web service
  • Q Create a program in a language of your choice to read a text file with various tweets. The output should be 2 text files-one that contains the list of all unique words among all tweets along with the count for repeated words and the second file should contain the medium number of unique words for all tweets.
  • Q What is the relevance of microbiology in food processing and preservation?
  • Q What are the other modifiers ?
  • Q Write a program to print fibonacci series using recursion?