package com.example;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.ui.ExpectedCondition;
import java.lang.String,java.lang.String;

public class Actionwords {
	
    WebDriver driver=null;

	public Actionwords() {
		System.setProperty("D:\\geckodriver-v0.11.1-win64\\geckodriver.exe");

		driver = new FirefoxDriver();
		
	}
	
	 public void iOpenP1(String p1) {
		 driver.get(p1);
	 }
     public void iSearchForP1(String p1) {
		 WebElement element = driver.findElement(By.name("q"));
		 element.clear();
		 element.sendKeys(p1);
		 element.submit();
    }

 public void aLinkToP1IsShownInTheResults(String p1) {
    final String matcher = p1;

    (new WebDriverWait(driver, 10)).until(new ExpectedCondition<Boolean>() {
        public Boolean apply(WebDriver d) {
        return d.findElements(By.linkText(matcher)).size() != 0;
        }
    });
   }
}

@@ -288,51 +288,8 @@
 on;%0A
-import java.lang.String,java.lang.String;%0A%0A
 publ
@@ -313,16 +313,12 @@
 rds 
+%0A
 %7B%0A%09
-%0A    
 WebD
@@ -336,17 +336,16 @@
 r=null;%0A
-%0A
 %09public 
@@ -358,16 +358,20 @@
 words() 
+%0A%09%0A%09
 %7B%0A%09%09Syst
@@ -506,24 +506,27 @@
 (String p1) 
+%0A%09 
 %7B%0A%09%09 driver.
@@ -578,16 +578,23 @@
 ring p1)
+%0A     %09
  %7B%0A%09%09 We
@@ -715,16 +715,17 @@
 t();%0A   
+%09
  %7D%0A%0A pub
@@ -772,16 +772,17 @@
 ring p1)
+%0A
  %7B%0A    f
@@ -883,16 +883,18 @@
 lean%3E() 
+%0A%09
 %7B%0A      
@@ -929,16 +929,18 @@
 iver d) 
+%0A%09
 %7B%0A      

Update Actionwords.java