Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Начало кода, входные данные
- IZennoTable Table_S = project.Tables["Domashka"];
- HtmlElement ShowMore = null;
- HtmlElement ShowMore1 = null;
- //Переходим на сайт и ждем загрузку
- instance.ActiveTab.Navigate("https://kupidonia.ru/spisok/polnyj-spisok-muzhskih-imen", "");
- instance.ActiveTab.WaitDownloading();
- //Поехали нажимать "Показать еще", пока не пропадет
- ShowMore = instance.ActiveTab.FindElementByAttribute("a", "innertext", "Показать еще", "regexp", 0);
- ShowMore1 = instance.ActiveTab.FindElementByAttribute("a", "style", "display: none;", "regexp", 0);
- string Done = ShowMore1.GetAttribute("style");
- do {
- ShowMore.RiseEvent("click", "Full");
- instance.ActiveTab.WaitDownloading();
- System.Threading.Thread.Sleep(200);
- }
- while (!ShowMore1.IsVoid);
- return "Ok";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement