Handling Exceptions without using try/catch block with TestNG
Like any programming language, our test cases need to be sturdy and capable to handle unexpected conditions as much as possible. e.g. While creating a temp file on detachable...
Like any programming language, our test cases need to be sturdy and capable to handle unexpected conditions as much as possible. e.g. While creating a temp file on detachable...
While testing it is necessary to execute “Sanityonly” test cases. e.g. As soon as build is ready, run only “sanity test cases” to validate stability of build. TestNG allows...
#1. Interact with Flash objects based on element location: If your script can locate the x,y coordinates of an element, you can click it using selenium ACTION class as...
Following program can be used to create bulk connections to a database. By default as soon as connection is closed there should be no connection leakage. If your application...
Switching between tabs in Selenium //Get handle to Current window tab. String mainWindowHandle = driver.getWindowHandle(); //Perform action which opens a new tab window in browser. //Get the list...
String winHandleBefore = driver.getWindowHandle(); // Perform GUI action which opens a new window, use following code to switch to pop-up window: for (String currentWindow : driver.getWindowHandles()) driver.switchTo().window(currentWindow); to revert...
Perform Double click in Selenium Selenium provides Actions class to allow end user perform double click on an object. Actions act = new Actions(driver); act.moveToElement(driver.findElement(By.xpath(“Element“))).doubleClick().build().perform();
In RDBMS, a stored procedure is set of sql statements which is complied and stored in a database to perform a special task. A stored procedure can have any...
Batch Statement in SQL The following examples show you how to perform a batch operation to insert bulk records into a relational database using the JDBC API. The “PreparedStatement#addBatch()”...
Saving Image file into Databases.. In this post, we will show you how to save a long binary string or image file into a BLOB (Binary Large Object) column...