Skip to content

Commit cf83692

Browse files
authored
Simplify phantom title with version selector
1 parent d829ede commit cf83692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebDriverManager/DriverConfigs/Impl/PhantomConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ public virtual string GetLatestVersion()
3434
var htmlCode = client.DownloadString("https://bitbucket.org/ariya/phantomjs/downloads");
3535
var parser = new HtmlParser(Configuration.Default.WithDefaultLoader());
3636
var document = parser.Parse(htmlCode);
37-
var version = document.QuerySelectorAll("tr[class='iterable-item'] td[class='name'] a")
37+
var version = document.QuerySelectorAll(".iterable-item > .name > a")
3838
.Select(element => element.TextContent)
3939
.FirstOrDefault(item => !item.Contains("beta"));
4040
version = version?.Split('-')[1];
4141
return version;
4242
}
4343
}
4444
}
45-
}
45+
}

0 commit comments

Comments
 (0)