Exemplo n.º 1
0
        public void ScrapeReleasePageTest()
        {
            ChampsSportsBot         bot = new ChampsSportsBot();
            List <FootsitesProduct> res = bot.ScrapeReleasePage(CancellationToken.None);

            Helper.PrintFindItemsResults(res);
        }
Exemplo n.º 2
0
        public void AccountCheckoutTest()
        {
            AccountCheckoutSettings settings =
                new AccountCheckoutSettings()
            {
                UserPassword = "******",
                UserLogin    = "******",
                UserCcv2     = "123",
                ProductToBuy = new FootsitesProduct(new ChampsSportsBot()
                                                    , "yle",
                                                    "https://www.champssports.com/product/model:283446/sku:A7097514",
                                                    0, "", "A7097514")
                {
                    Sku   = "A7097514",
                    Model = "283446",
                },
                BuyOptions = new ProductBuyOptions()
                {
                    Size = "S"
                }
            };

            ChampsSportsBot bot = new ChampsSportsBot()
            {
                DelayInSecond = 5
            };

            bot.Start(proxy: "162.217.145.90:2036");
            bot.AccountCheckout(settings, CancellationToken.None);
        }
Exemplo n.º 3
0
        public void LoginTest()
        {
            ChampsSportsBot bot = new ChampsSportsBot()
            {
                DelayInSecond = 5
            };

            bot.Start(proxy: "162.217.145.90:2036");
            bot.Browser.NewTab("loginTab");
            bool a = bot.Login("*****@*****.**", "giorgi121", CancellationToken.None);

            Console.WriteLine(a);
        }