title: How to bind two classes into one classes using google guice?
body: <p>I'v a base class which has selenium configuration for the application. I want to use the class A(selenium configuration.class) to another class B(Action.class) which is again has to extend Class c(UIElemnts.class).
  I tried to user Google guice to bind the classes like this.</p>
  
  <ul>
  <li>how should I use two classes (A&amp; C) on class B using Google Guice. Kindly explain with example </li>
  </ul>
  
  <p>In this example I want to use the setup method and driver object in class B but class B is already extended to Class. I just want to try Google Guice to bind the classes.</p>
  
  <hr>
  
  <pre><code>import java.util.concurrent.TimeUnit;
  
  import org.openqa.selenium.Proxy.ProxyType;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.firefox.FirefoxProfile;
  import org.testng.annotations.BeforeTest;
  
  import test.com.x.software.b.base.SeleniumConfiguration;
  
  import com.google.inject.Binder;
  import com.google.inject.Module;
  import com.google.inject.Singleton;
  import com.thoughtworks.selenium.SeleneseTestBase;
  
  public class SeleniumConfiguration extends SeleneseTestBase{
  
      public static WebDriver driver;
  
      @BeforeTest
      public static void setup() {
  
          // Invoking firefox browser
          FirefoxProfile firefoxobj = new FirefoxProfile();
          firefoxobj.setPreference("network.proxy.type",
                  ProxyType.AUTODETECT.ordinal());
          // System.out.println("********************");
          driver = new FirefoxDriver(firefoxobj);
          // System.out.println("********************"+Url);
          driver.navigate().to("https://software.x.com");
          // System.out.println("********************");
          driver.manage().timeouts().implicitlyWait(100, TimeUnit.SECONDS);
  
      }
  
  
  
  
  }
  </code></pre>
  
  <hr>
  
  <pre><code>public class class B extends Class C{
  
  
      @ Test
      public static void createDeveloper() throws InterruptedException
      {
  
  //  String currentdate=dateFormatting();
  //  String firstname="Test_Fn_"+currentdate;
  //  String lastname ="Test_Ln_"+currentdate;
  //  String loginid="Test_Tp_"+currentdate;
  
  
  }
  </code></pre>
  
  <hr>
  
  <pre><code>import org.openqa.selenium.WebElement;
  import org.openqa.selenium.support.FindBy;
  import org.openqa.selenium.support.PageFactory;
  
  public class Class C extends PageFactory {
  }
  </code></pre>