selenium - validate dropdown elements from a string -
i clicked dropdown
. now, how check expected string present in dropdown
, , if element not present, display message: "this element not present"
?
code:
driver1.findelement(by.xpath("//span[contains(.,'work items')]")).click(); string[] expected = {"defect", "task", "story", "epic","design task"};
Comments
Post a Comment