Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using OpenQA.Selenium;
- using OpenQA.Selenium.Chrome;
- using OpenQA.Selenium.Support;
- using OpenQA.Selenium.Support.UI;
- using OpenQA.Selenium.Interactions;
- namespace FunCaptcha
- {
- class Program
- {
- static void Main(string[] args)
- {
- ChromeOptions options = new ChromeOptions();
- options.AddArgument("--user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Mobile/14B150");
- options.AddArgument("--window-size=750,1334");
- ChromeDriver driver = new ChromeDriver(options);
- driver.Navigate().GoToUrl(AppDomain.CurrentDomain.BaseDirectory + @"fun_loader.html");
- System.Threading.Thread.Sleep(5500);
- OpenQA.Selenium.Interactions.Internal.ICoordinates coordinates;
- OpenQA.Selenium.IWebElement element;
- Actions action = new Actions(driver);
- element = driver.FindElement(By.Id("FunCAPTCHA"));
- action.MoveToElement(element, 100, 100).Click().Build().Perform();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement