Hello.

There is such a tag:

<div data-id-1="name1" data-id-2="name2" data-id-3="name3">text</div> 

Search for 1 attribute is done like this //div[@data-id-1] . And how to find an element specifying not one attribute in the search, but several at once? For example, to find an element for which these attributes: data-id-1 , data-id-2 , data-id-3 ?

    1 answer 1

     .//div[@data-id-1][@data-id-2][@data-id-3] 

    Well, there is a need with specific values, then:

     .//div[@data-id-1="name1"][@data-id-2="name2"][@data-id-3="name3"]