title: obtaining the runtime type of a transparent proxy is not supported in this context
body: <p>I am new to selenium. While running (debugging) my selenium tests (in C#), I am getting "obtaining the runtime type of a transparent proxy is not supported in this context" and due to this none of the web elements are found.</p>
  
  <p>I have used "Selenium.Support.PageObjects" &amp; PageFactory to locate and initialize web elemements.</p>
  
  <p>Can anyone help me out from this?</p>
  
  <p>Below is snippet of my code:</p>
  
  <pre><code>using OpenQA.Selenium;
  using OpenQA.Selenium.Support.PageObjects;
  
  namespace TestFramework
  {
      public class TestClass: TestBase
      {
  
          public TestClass(Driver driver): base(driver) { }
  
          [FindsBy(How = How.XPath, Using = "//div[@class='modal-footer']/button[@title='Yes']")]
          public IWebElement YesButton { get; set; }
  
          [FindsBy(How = How.XPath, Using = "//div[@class='modal-footer']/button[@title='No']")]
          public IWebElement NoButton { get; set; }
  
  
          public void ClickYesButton()
          {
          YesButton.Click();
          }
          public void ClickNoButton(int timeout = ConfigMT.DefaultTimeout)
          {
          NoButton.Click();
          }
  
      }
  }
  </code></pre>
  
  <p>And TestBase class is:</p>
  
  <pre><code>using OpenQA.Selenium;
  using OpenQA.Selenium.Support.PageObjects;
  using OpenQA.Selenium.Support.UI;
  
  namespace TestFramework
  {
  
  public class TestBase
  {
  
      protected IWebDriver Driver { get; set; }
  
      public Page(Driver driver)
      {
          this.Driver = driver;
          PageFactory.InitElements(this.Driver, this);
      }
  
  }
  }
  </code></pre>