//DESCRIPTION: Visit a website or url and click in a random link
//TAB1: URL's
//TEXT1: Insert here all the url's you want to visit (one per line)
//TAB2: Referers (Optional)
//TEXT2: Insert here all the referer url's you want to use (one per line)
string url = GetRandomLine(Tab[1]);
string referer = GetRandomLine(Tab[2]);
if(referer==""){
Navigate(url);
} else {
Navigate(referer);
Browser.ExecuteScript("window.location.href = \""+url+"\";");
}
Random rnd = new Random();
Sleep(rnd.Next(2, 10));
var a = Browser.FindElementsByTagName("a");
a[rnd.Next(0, a.Count)].Click();
return Browser.Url;