Package org.openqa.selenium

Examples of org.openqa.selenium.WebElement.submit()


        // Locate the Search field on the Google page
        WebElement element = d.findElement(By.name("q"));
        // Type Cheese
        element.sendKeys(strToSearchFor);
        // Submit form
        element.submit();

        // Check results contains the term we searched for
        assertTrue(d.getTitle().toLowerCase().contains(strToSearchFor.toLowerCase()));
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.