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;

public class Actionwords {
     
     WebDriver driver;
	
	public void Actionwords()
	{
	      driver=new FirefoxDriver();
	}

 	
	public void iOpenP1(String p1) 
	{
	  System.out.println("inside iOpenP1"+p1);	
     	  driver.get(p1);
		 System.out.println("after driver get");	
	}
     public void iSearchForP1(String p1) 
	 {
     WebElement element = driver.findElement(By.name("q"));
     element.clear();
     element.sendKeys(p1);
     element.submit();
	}

}

@@ -360,29 +360,35 @@
 oid 
-Actionwords()
+iOpenP1(String p1) 
 %0A%09%7B%0A%09   
    d
@@ -387,18 +387,17 @@
 %09   
-   
 driver
-=
+ = 
 new 
@@ -418,51 +418,9 @@
 );%0A%09
-%7D%0A%0A %09%0A%09public void iOpenP1(String p1) %0A%09%7B%0A%09
+ 
   Sy
@@ -484,17 +484,17 @@
 t(p1);%0A%09
-%09
+ 
  System.
@@ -538,184 +538,6 @@
     
- public void iSearchForP1(String p1) %0A%09 %7B%0A     WebElement element = driver.findElement(By.name(%22q%22));%0A     element.clear();%0A     element.sendKeys(p1);%0A     element.submit();%0A%09%7D%0A%0A
 %7D%0A

Update Actionwords.java