title: How can i change textbox text to string variable and send it another class and use it in sendkey
body: <p>i want  textbox text convert to string variable and send it another class and use it in sendkey</p>
  
  <pre><code>public void ScreenshotOfElement()
      {
  
          IWebDriver driver = new ChromeDriver();
          driver.Navigate().GoToUrl("https://allcoins.pw/");
     driver.FindElement(By.XPath("//input[@id='captchal']")).SendKeys(str);
  
      }
  
     private void Button1_Click(object sender, EventArgs e)
      {
          string str = textBox1.Text;
      }
  </code></pre>