Ways to Interact with Flash objects in Selenium

  • 26
    Dec

    Ways to Interact with Flash objects in Selenium

    #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...

    Read More
  • 20
    Dec

    BDD Advantages and Disadvantages

    BDD advantages and disadvantages The main BDD advantages are: Reduce waste: BDD is focused on discovering and developing features that brings high business value, so any feature that does...

    Read More
  • 20
    Dec

    Check if given IP address is IPv4 or IPv6

    Library function that can be used to determine if the network address shared is IPv4 or IPv6   ==== package testCases; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; public class...

    Read More
  • 20
    Dec

    Get connection interface details from your system

    Following program lists “Display name” and “InetAddress” to all network connections available   ============= package testCases; import java.io.*; import java.net.*; import java.util.*; import static java.lang.System.out; public class ListNets {...

    Read More
  • 20
    Dec

    Discovering systems up and running on a subnet

    This example is crude form of discovering all systems up and running (at time of execution) to run discovery of subnet. ============ package testCases; import java.io.IOException; import java.net.InetAddress; import...

    Read More
  • 19
    Dec

    Detecting connection leaks for your application

    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...

    Read More
  • 19
    Dec

    Generating a Random number string for mobile no.

    JMeter allows creation of custom number of specific length. Put following code in “BeanShell PostProcessor” and use “Phone” variable in your JMeter.  This will generate a 10 digit random...

    Read More
  • 04
    Oct

    Switching between tabs in Selenium

    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...

    Read More
  • 04
    Oct

    Switching between windows during script run

    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...

    Read More
  • 04
    Oct

    Double click in Selenium

    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();

    Read More