Java Tutorials for Selenium
Submitted by harrydev on Sat, 01/02/2016 - 15:13
When you start working with Selenium webdriver, you will come across different exceptions based on the code you write, the same code some times work properly and sometimes it will not. You will see some or the other exception when you execute your scripts. When ever you see these exception regularly you will get frustrated.
When ever we develop any scripts, we will try give the best quality code that works fine. But Unfortunately, sometimes exceptions come as side effects to the scripts that we develop and fails.
Submitted by harrydev on Sat, 01/02/2016 - 12:49
Branching statements will transfer the control from one statement to another statement. the following are branching statements in java programming
break statement is used to stop the execution and comes out of loop. Mostly break statement is used in switch in order to stop fall through and in loops also we use break.
Submitted by harrydev on Sat, 01/02/2016 - 07:53
Just like decision making statements, looping statements also execute the statements based on some condition but if we want to execute the same statement more than once with condition checking then we go for looping statements.
The following are the types of looping statements in Java: -
1. while loop
2. do..while loop
3. for loop
1. while loop:
while loop is the basic of all looping statements, which executes the loop repeatedly until the conditional expression evaluates to false.
Submitted by harrydev on Sat, 01/02/2016 - 06:08
It is also one type of Conditional Statements, which is basically used to write for menu driven programs. When ever there are more number of options to select then we will go for Switch statement i.e., single expression with many possible options. The same thing can be done using if..else statements but it can get very confusing and if..else statement is difficult to change when it becomes highly nested.
Submitted by harrydev on Sat, 01/02/2016 - 04:12
Control Flow Statements:
Control flow statements, controls the normal flow of execution and executes based on conditions specified by the developer.
There are three types of Control Flow Statements :
Decision Making Statements (Selection Statements)
Looping Statements (Iterative Statements)
Branching Statements (Transfer Statements)