java - How to click on the first record if the search records are more than one? -
how can check using selenium web driver either search result exists or not. e.g while searching record in amzon.de
you don't have deal result_count
if interested in first element. need select it, using right xpath. first result has id="result_0"
this should work:
//div[@id="result_0"]/h3/a/span
Comments
Post a Comment