SHARE
TWEET

Untitled

a guest Jun 27th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string HashResponse = Captcha.CaptchaGetResponse("https://youtube.com/channel/" + idCh + "/about");
  2.                 WebDriverWait wait = new WebDriverWait(Browser, TimeSpan.FromSeconds(10));
  3.                 IWebElement SearchInput = wait.Until(Browser => Browser.FindElement(By.CssSelector("#text")));
  4.                
  5.                
  6.                 SearchInput.Click();
  7.  
  8.                     System.Threading.Thread.Sleep(3000);
  9.                     IJavaScriptExecutor jse = Browser as IJavaScriptExecutor;
  10.                     jse.ExecuteScript("document.getElementById('g-recaptcha-response').style.display = 'block';");
  11.  
  12.                     System.Threading.Thread.Sleep(2000);
  13.                     IWebElement form = Browser.FindElement(By.CssSelector(".g-recaptcha-response"));
  14.                     form.SendKeys(HashResponse);
  15.  
  16.                      
  17.                 if (IsElementPresent(By.CssSelector(".captcha-submit")) && IsElementVisible(Browser.FindElement(By.CssSelector(".captcha-submit"))))
  18.                 {
  19.                     IWebElement SendCaptcha = wait.Until(Browser => Browser.FindElement(By.CssSelector(".captcha-submit")));
  20.                     SendCaptcha.Click();
  21.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top