2015-01-21 72 views

回答

3

与XPath得到它

//span[@aria-label="To - Select Contacts"] 
0

您也可以使用此XPath

//span[@data-tooltip = 'Select Contacts'] 
1

您可以使用CSS选择器。 Smth像这样:

//If class name is permanent and there is single instance on the page 
driver.findElement(By.Css(".gO aQY")) 
//otherwise 
driver.findElement(By.Css("span[aria-label='To - Select Contacts']")) 

请参阅this链接了解更多信息。