Category: Code Samples
-

Switching between Iframes
there are cases where an object is located in an Iframe ( web text editors is a common case ) but a common rule is . The iframe is often used to add content from other sources like an advertisement into a web page. The iframe is defined with the <iframe> tag. When we want…
-

Selenium Waits
-

JUnit Annotations Explained
@Before is executed before each test, @BeforeClass runs once before the entire test fixture. If your test class has ten tests, @Before code will be executed ten times, but @BeforeClass will be executed only once. In general, you use @BeforeClass when multiple tests need to share the same computationally expensive setup code. Establishing a database connection falls into this category. You can move…
-

Selenium Hello World
A “Hello, World!” program generally is a computer program that outputs or displays the message “Hello, World!”. Such a program is very simple in most programming languages, and is often used to illustrate the basic syntax of a programming language. It is often the first program written by people learning to code.[1][2] It can also…