package automatedTests.testArchetypes;


import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;

import automatedTests.testData.GoogleSimpleData;
import basiliscus.templates.FrameworkArchetype;

public class GoogleSimpleArchetype extends FrameworkArchetype{
	
	private static final String SEARCH_INPUT_ID = "lst-ib";
	private static final String IMAGES_LINK_XPATH = "//*[@id='hdtb-msb']/div[2]";
	
	
	public static void goToGoogle(){
		localBrowser.loadUrl("https://www.google.com.co");
	}
	
	public static void searchData(){
		WebElement searchInput = localBrowser.findElementById(SEARCH_INPUT_ID);
		searchInput.sendKeys(GoogleSimpleData.SEARCH_DATA);
		searchInput.sendKeys(Keys.ENTER);
	}
	
	public static void clickOnImages() throws Exception{
		WebElement imagesLink = localBrowser.findElementByXpath(IMAGES_LINK_XPATH);
		localBrowser.click(imagesLink);
	}
	
	public static void finishAlert(){
		JavascriptExecutor js =(JavascriptExecutor)localBrowser.getDriver();
        js.executeScript("alert('Hello World Test Finished')");
	}
	
}

@@ -441,16 +441,20 @@
 hdtb-msb
+-vis
 '%5D/div%5B2
@@ -454,16 +454,18 @@
 %5D/div%5B2%5D
+/a
 %22;%0A%09%0A%09%0A%09
@@ -546,16 +546,28 @@
 e.com.co
+/?gws_rd=ssl
 %22);%0A%09%7D%0A%09

Update URLS and XPATHS