Selenium WebDriver Commands

11. Selenium Verification methods: getTitle(); getCurrentUrl(); getText(); 12. Verify the text, images, text boxes, radio buttons, checkboxes methods: isDisplayed(); isEnabled(); isSelected(); 13. File Upload methods in Selenium: To upload a file we can use sendKeys() method. driver.findElement(By.xpath(“input field”)).sendKeys(“path of the file to upload”);

Naming Convention in Java

Naming Conventions in Java

SNo. Name Convention Example 1. package name should be start with in lowercase letter  java, lang, sql, util etc 2. class name should start with uppercase letter and be a noun and then from second word onwards, each new word starts with a uppercase letter String, System, Firefox, DataInput, Thread  3. interface name should start with uppercase letter and be an adjective and then … Read more

First Programming in Java

package javaprograms; public class FirstPrograminJava { public static void main(String[] args) { System.out.println(“Hello World”); } }