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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -