C# html agility pack get elements by class name -


i'm trying divs class contains word:

<div class="hello mike">content1</div> <div class="hello jeff>content2</div> <div class="john">content3</div> 

i need divs class contains word "hello". this:

resultcontent.documentnode.selectnodes("//div[@class='hello']")) 

how can agility pack?

i got it:

resultcontent.documentnode.selectnodes("//div[contains(@class, 'hello')]")) 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -