Hiya friends! If you stepped into the World of Selenium, you must have run into Web Elements! Text boxes, buttons, links, checkboxes, radio buttons, dropdowns, alerts etc., everything is treated as a web element. Using locator types and strategies, we can easily identify any desired element on the page. This is the most crucial step for interacting with the page and referencing these elements further in the code. And yes, it is very similar to what we saw in Selenium IDE except for the syntax and the way the concept is applied.
Search Results for:
Hiya everyone! This post is a continuation of the previous one, 9h. WebDriver – Implicit Waits.
Without further ado, let us harness the power of Explicit Waits. An explicit wait requires a bit more coding but has huge advantages compared to an implicit wait. Here we can wait until a certain condition occurs before proceeding with the test. If the condition is not met within the specified timeout value, then an exception is thrown.
Your test case runs successfully and works as expected when you step through it one line at a time but running as a suite/batch, it might fail. Scratching your head to understand the reason behind this? Let’s dive in for more!
1+1 is just a convenient way of writing 1.plus(1). This is achieved by class [Read more…]