src/main/java/quickstart/Pages/GoogleSearchPage.java
/**
	 * This method is for entering a keyword in an input field on the webpage
	 * Notice how the locators of WebElement searchBox is read from the 
	 * properties file which is loaded in the constructor of the class.
	 * command to read the property - properties.getProperty("searchBox")
	 * @param keyword A string value to be entered in the field
	 */
This method is for entering a keyword in an input field on the webpage
Notice how the locators of WebElement searchBox is read from the
properties file which is loaded in the constructor of the class.
command to read the property - properties.getProperty("searchBox")
@param keyword A string value to be entered in the field
This method is for entering a keyword in an input field on the webpage Notice how the locators of WebElement searchBox is read from the properties file which is loaded in the constructor of the class . command to read the property - properties . getProperty ( " searchBox " ) @param keyword A string value to be entered in the field
public void enterKeyWord(String keyword) {
		driver.findElement(By.xpath(properties.getProperty("searchBox"))).sendKeys(keyword);
		driver.findElement(By.xpath(properties.getProperty("searchBox"))).sendKeys(Keys.ENTER);
	}
public void enterKeyWord ( String keyword ) { driver . findElement ( By . xpath ( properties . getProperty ( "searchBox" ) ) ) . sendKeys ( keyword ) ; driver . findElement ( By . xpath ( properties . getProperty ( "searchBox" ) ) ) . sendKeys ( Keys . ENTER ) ; }
This method is for entering a keyword in an input field on the webpage
 Notice how the locators of WebElement searchBox is read from the
 properties file which is loaded in the constructor of the class.
This method is for entering a keyword in an input field on the webpage Notice how the locators of WebElement searchBox is read from the properties file which is loaded in the constructor of the class .