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=null;

	public void Actionwords() 
	{
     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();
	}

}

@@ -343,13 +343,8 @@
 iver
-=null
 ;%0A%0A%09
@@ -374,24 +374,30 @@
 () %0A%09%7B%0A     
+ %09    
 driver = new
@@ -458,15 +458,57 @@
 %09%7B%0A%09
+  System.out.println(%22inside iOpenP1%22);
 %09%0A     
+%09  
 driv
@@ -519,16 +519,60 @@
 et(p1);%0A
+%09%09 System.out.println(%22after driver get%22);%09%0A
 %09%7D%0A     

Update Actionwords.java