how verify element y present between element x , z in ui using selenium java.
eg: there 3 xpath's in same page. this
"table/tbody/tr[1]/td[2]/div/div[5]/label" contain label x "table/tbody/tr[1]/td[2]/div/div[6]/label" contain label y "table/tbody/tr[1]/td[2]/div/div[7]/label" contain label z
how verify whether label y present between label x , label z using ui elements
and without using asserttext etc.
the xpath's not same labels vary.
note : xpath mentioned here sample , not exact one.
i think can use webelement#getlocation() each divs labels , compare coordinates.
Comments
Post a Comment