check if a checkbox is checked in selenium webdriver

  • 26
    Jun

    check if a checkbox is checked in selenium webdriver

    package SeleniumPractice; import java.text.ParseException; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; import org.testng.Assert; import org.testng.annotations.Test; public class AddCookiesInSelenium { WebDriver driver; @Test...

    Read More
  • 26
    Jun

    scroll a long web page in selenium webdriver

    package SeleniumPractice; import java.text.ParseException; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; import org.testng.Assert; import org.testng.annotations.Test; public class AddCookiesInSelenium { WebDriver driver; @Test...

    Read More
  • 26
    Jun

    drag and drop with selenium webdriver

    package SeleniumPractice; import java.text.ParseException; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; import org.testng.Assert; import org.testng.annotations.Test; public class DragAndDropInSelenium { WebDriver driver; @Test public void...

    Read More
  • 26
    Jun

    working with menus in Selenium (mouseover and click on link)

    package SeleniumPractice; import java.text.ParseException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; import org.testng.annotations.Test; public class Workingwithmenus { WebDriver driver; @Test public void enterText() throws InterruptedException, ParseException...

    Read More
  • 26
    Jun

    add custom cookie with selenium webdriver

    package SeleniumPractice; import java.text.ParseException; import java.util.Set; import java.util.concurrent.TimeUnit; import org.openqa.selenium.Cookie; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.Test; public class AddCookiesInSelenium { WebDriver driver; @Test public void enterText() throws InterruptedException, ParseException...

    Read More
  • 26
    Jun

    Multithreaded initializing of browsers with Selenium web driver

    Internet Explorer Driver InternetExplorerDriver is a standalone server which implements WebDriver’s wire protocol. This driver has been tested with IE 7, 8, 9, 10, and 11 on appropriate combinations...

    Read More
  • 26
    Jun

    starting a Winium server and test execute sample application

    public class myfirstClass { public static void main(String args) throws IOException, InterruptedException { WiniumDriver driver = null; DesktopOptions options = null; WiniumDriverService service = null; WebDriverWait wait = null;...

    Read More
  • 26
    Jun

    read the contents of csv file as Map>

    /* * Read all contents of atmTransactionFile into Map<index, List<String, String>> */ public Map<Integer, List<String>> readCSVFile(String fileName) { int rowdata1= 0; String csvRow = null; List<String> rowData = new...

    Read More
  • 26
    Jun

    get number of columns in a csv file

    /* * Get number of columns in a CSV File Input: CSVFileName Output: integer * numberOfColumns or numberOfHeaders */ public int getNumberOfColumns(String fileName) { int columns = 0; String...

    Read More
  • 26
    Jun

    get row number where first column matches to given value

    /* * Get row number where first column contains specific value */ public int getRowId(String fileName, String valueToSearch) { int rows = 0; String currentRow; try (BufferedReader csvDataFile =...

    Read More