xpath search for divs where the id contains specific text

后端 未结 3 1942
青春惊慌失措
青春惊慌失措 2020-12-29 18:31

On my HTML page I have forty divs but I only want one div

Using agility pack to search and get all the divs with Ids I use this

\"//div[@id]\"
         


        
3条回答
  •  春和景丽
    2020-12-29 19:29

    I've used this with for the CSS class:

    //div[@class = 'atom']
    

    I assume it's similar with id's.

提交回复
热议问题