- Method Name : get
- Method description : Using HTTP GET operation, It will load new web page in current web browser window. It will block all other operations until the browser load is completed. That means, Next syntax will be executed only after browser loaded completely with given URL.
- Syntax : driver.get(String arg0)
- Example : driver.get("http://www.google.com");
A blog on Selenium tutorial, Selenium webdriver tutorial, Selenium IDE tutorial, Appium Tutorial, Selenium Grid Tutorial, Jmeter Tutorial.
What is get method in selenium?
WebElement Locators - 2: By Xpath, Tag Name, Class Name, and CSS Selector
WebElement Locators – Part - 1 - Selenium With Python
Selenium Webdriver With Python - Basic Test script
From selenium import webdriver
From selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox ()
driver.get ( "http://www.google.com" )
Assert "Python" in driver.title
Element = driver.find_element_by_name ( " address of webelement " )
Element.clear ()
Element.send_keys ( "content text" )
Element.send_keys ( Keys.RETURN )
Assert "No results found." not in driver.page_source
driver.close ()
The above script can be saved to a file (eg: - python_org_search.py ), then you can use it like this
Selenium Tutorial : The path to the driver executable must be set by the webdriver.gecko.driver system property
Java Hashtable Class
- Hashtable Class implements Map, Cloneable and Serializable interfaces and also extends Dictionary class.
- It maps keys to values in table format. Every key is linked to it's value.
- In Hashtable, any object which is non null will be used as a key or it's value.
- Initial capacity and load factor are two parameters of Hashtable that affect its performance.
- Meaning of capacity is the number of buckets in Hashtable and Meaning of initial capacity is number of buckets in Hashtable at the time of its creation.
- Load factor is parameter which measure how much full Hashtable is and when to increase it's capacity automatically.
- In order to successfully retrieve and store object in Hashtable, the object which is used as key must implement the equals and the hashCode methods.
Java ArrayDeque Class
- ArrayDeque is one of the collection framework member which implements Deque, Cloneable and Serializable interfaces.
- ArrayDeque provides Resizable-array implementation so it has no capacity restrictions and it will grow as per requirement.
- In the absence of external synchronization, they are not thread safe. So they do not allow multiple threads to access it concurrently.
- Also ArrayDequenot allow to store null elements.
- ArrayDeque Class is faster than LinkedList when used as a queue and faster than Stack when used as a stack.
- If ArrayDeque is modified after the iterator creation and if it is not modified by iterators own method then it will throw ConcurrentModificationException. So in concurrent modification, Iterator will fail.
Java Deque Interface
- Deque is one of the collection interface which extends Queue interface.
- Deque is linear collection which allow us to add and remove element from both ends of the queue.
- It is "double ended queue" that's why it is called Deque and usually pronounced as "deck".
- Deque has different methods to perform insert, delete and examine the element in queue.
- Each of these methods have two different forms. One will throw an exception if it fails during operation and other will return a special value like null or false.
Java PriorityQueue Class
- PriorityQueue Class is one of the collection framework class which implements Queue, Serializable, Iterable and Collection interfaces.
- It is using natural ordering to order then elements of PriorityQueue.Or elements will be ordered based on Comparator provided at queue construction time depending on which constructor is used.
- PriorityQueue is based on a priority heap. Heap is tree based data structure where all the nodes of tree are in a specific order. Please read about Heap to learn how it works.
- PriorityQueue does not allow non-comparable objects and it may throw ClassCastException if you will try to do so.
- PriorityQueue does not allow null elements as well.
- PriorityQueue implementation is not synchronized. So multiple threads should not access it concurrently.
Java ArrayList Class
- ArrayList class is sub class of collection interface which implements to List interface.
- ArrayList class provides resizable-array so it can grow automatically as per requirement which resolves fixed Array limitation where you have to pre-define the size of array.
- It can hold null elements too.
- It is not synchronized implementation so if multiple threads accessing it concurrently and any one from them modifies the entry then it must be synchronized externally.
- Also it can hold duplicate elements.
Java Collections Framework
- Main advantage of collection framework is it will reduces your programming efforts as there are ready made interfaces, classes and their methods which you can use directly in your program to perform operation on object collection.
- Collection is well structure framework so you code quality and speed will be increased.
- Anyone can use collection very easily as it's interfaces, classes and methods very easy to understand and use.
- Java Collection Interface
- Java List Interface
- Java ArrayList Class
- LinkedList In Java
- Vector Class In Java
- Stack Class in Java
- Java Queue Interface
- Java PriorityQueue Class
- Java Deque Interface
- Java ArrayDeque Class
- Java Set Interface And Methods
- Java LinkedHashSet Class
- HashSet in Java Collection Example
- Java SortedSet Interface
- Java TreeSet Class
- Java Hashtable Class
- Java Map Interface
- Java HashMap Class
- LinkedHashMap Class In Java
Java List Interface
- List interface in java is ordered collection so it can store elements in sequence.
- List interface is sub interface and it extends to Collection interface.
- List interface can hold duplicate elements so you can insert duplicate elements too.
- You can access elements from list by integer index.
- Collection framework has many interfaces in java and list interface is one of them.
- List interface provides ListIterator to traverse through elements list in backward and forward directions.
Java Collection Interface
- Collection is an interface in java.
- Collection interface extends Iterable interface.
- In hierarchy, Collection interface is root of List, Queue and Set interfaces.
- It represents unit of its elements. i.e. group of objects.
- Some collections do not allow duplicate elements but some allows duplicate elements.
- Collection interface is base on which collection framework is built.
Selenium Tutorial - Learn Selenium Webdriver Online Free Step By Step
Selenium webdriver is widely used open source automation testing tool in software testing industry which automates browsers. It is very compact object-oriented API which drives browsers natively on local or remote machines just like user interacts with browsers. If you look at the top trending automation testing tools, Selenium Webdriver is on top spot from last 10 to 12 years. It is being used by small scale companies to giant MNCs. As you know, Manual testing takes lots of time and efforts when your web application testing task is repetitive. Selenium automation will reduce your testing time and cost as you need to write selenium script just once and you can use those selenium automation testing scripts again and again whenever required. You can use those scripts mainly for regression testing of web application.
Selenium is free and supports many different languages like selenium Java, Python, Pearl, Ruby, PHP and C#. Selenium with java and selenium with python needs special mention here as both these languages are more popular than the other languages in selenium automation. To learn selenium with java, You should have java coding basics knowledge. If you are fresher then you should start java for beginners tutorial and then you can move to selenium tutorial. I have prepared very good set of java beginners tutorials for selenium learners which can help you to boost your java basics. Once you learn java basics, You can start with java advanced tutorials set.