//Выбираем рондомные числа для скролинга страницы
Random num = new Random();
int Scrol_rondom = num.Next(1000,5000); //горизонталь
project.Variables["Scrol_rondom"].Value = Convert.ToString(Scrol_rondom);
int Scrol_rondom1 = num.Next(-200,100); //горизонталь
project.Variables["Scrol_rondom1"].Value = Convert.ToString(Scrol_rondom1);
int Scrol_rondom2 = num.Next(1000,5000); //горизонталь
project.Variables["Scrol_rondom2"].Value = Convert.ToString(Scrol_rondom2);
int Scrol_rondom3 = num.Next(-1000,100); //горизонталь
project.Variables["Scrol_rondom3"].Value = Convert.ToString(Scrol_rondom3);
int Scrol_rondom4 = num.Next(1000,5000); //горизонталь
project.Variables["Scrol_rondom4"].Value = Convert.ToString(Scrol_rondom4);
int Scrol_rondom5 = num.Next(-500,100); //горизонталь
project.Variables["Scrol_rondom5"].Value = Convert.ToString(Scrol_rondom5);
//Выбираем рандомно паузы
int sleep = num.Next(3000,6000); //пауза
int sleep1 = num.Next(3000,6000); //пауза
int sleep2 = num.Next(3000,6000); //пауза
int sleep3 = num.Next(3000,6000); //пауза
int sleep4 = num.Next(3000,6000); //пауза
//Скролим страницу и двигаем мышкой
instance.ActiveTab.FullEmulationMouseWheel(0,Scrol_rondom); //Прокрутка
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(200,500));
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(200,500));
Thread.Sleep(sleep);// пауза
instance.ActiveTab.FullEmulationMouseWheel(0,Scrol_rondom1); //Прокрутка
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(300,400));
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(300,400));
Thread.Sleep(sleep1);// пауза
instance.ActiveTab.FullEmulationMouseWheel(0,Scrol_rondom2); //Прокрутка
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(400,500));
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(400,500));
Thread.Sleep(sleep2);// пауза
instance.ActiveTab.FullEmulationMouseWheel(0,Scrol_rondom3); //Прокрутка
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(500,600));
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(500,500));
Thread.Sleep(sleep3);// пауза
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(200,500));
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(200,500));
instance.ActiveTab.FullEmulationMouseWheel(0,Scrol_rondom4); //Прокрутка
Thread.Sleep(sleep4);// пауза
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(200,500));
instance.ActiveTab.FullEmulationMouseMove(num.Next(100,1200), num.Next(200,500));
instance.ActiveTab.FullEmulationMouseWheel(0,Scrol_rondom5); //Прокрутка