Trying some bugfix (scraping)
This commit is contained in:
@ -135,6 +135,8 @@ namespace BrowserHelper.Extensions
|
||||
int rowIndex = 0;
|
||||
//GlobalStopwatch.PrintSecs("Before scraplooping");
|
||||
foreach (var row in rows)
|
||||
{
|
||||
try
|
||||
{
|
||||
var element = row.FindElement(By.XPath(".//td"));
|
||||
if (!shareSet.Contains(element.Text)) { }
|
||||
@ -155,6 +157,10 @@ namespace BrowserHelper.Extensions
|
||||
shareSet.Remove(element.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
//if (antal < 1) break;
|
||||
if (shareSet.Count < 1) break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user