css - Unable to locate element with cssSelector -


i trying reach div , click later.

<div class="leaflet-marker-icon marker-cluster marker-cluster-small leaflet-clickable leaflet-zoom-animated" style="margin-left: -6px; margin-top: -6px; width: 12px; height: 12px; opacity: 1; transform: translate(702px, 396px); z-index: 396;" title="13 tracks listened in , ua"> 

here's i'm trying do:

webelement cluster = driver.findelement(by.cssselector("marker-cluster-small")); 

here's i've tried do:

webelement cluster = driver.findelement(by.xpath("//div[@class='leaflet-marker-icon marker-cluster marker-cluster-small leaflet-clickable leaflet-zoom-animated']")); 

none of ways work. first 1 throws "unable locate element" message. no error appears on second one, when do:

cluster.click(); 

nothing happens. doing wrong? thanks.

you should try answer on page how can find element css class xpath?. should able close first answer searching "marker-cluster-small." hope helps in way. ("//div[contains(@class, 'marker-cluster-small')]")


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -