QuerySelector HTML Flexibility Package returns null

I use Fizzlerfor Html Agility Pack. This is my selector that works with thin-width jquery when I test it in firebug:

$('table.adsh>tbody:nth-child(1)>tr:nth-child(4) table tr:nth-child(1)>td:nth-child(2)')

But this line of code returns null in C # code:

var item = page.QuerySelector("table.adsh>tbody:nth-child(1)>tr:nth-child(4) table tr:nth-child(1)>td:nth-child(2)");
Element

always zero. Is there something wrong with my selector?

Any help is appreciated in advance.

+4
source share
1 answer

. page.QuerySelector("table.adsh").InnerHtml; , tbody. Inspect Element Chrome FireFox, tbody. , Html tbody, Inspect Element , tbody . html.

: firebug add <tbody> <table> ?.

tbody .

+1

Source: https://habr.com/ru/post/1536227/


All Articles