There is such an element html

<div class=«main-content__item» data-game=«dota2»> 

I am writing a parser for a site on Java selenium, but I think this is not a big issue. When I parse this identifier, how can I specify data-game = "dota2" because it is the only thing that distinguishes the div with the game dota2 from all the others.

Both selections and xPath are available for parsing in Selenium.

    0