通过使用此CSS选择器#rph3 > svg > a > text>tspan....
,我得到了22个列表。我想要一个特定的元素..如何查找
Thread.sleep(4000);
driver.findElement(By.xpath("//div[@class='fr search']")).sendKeys("mahindra and mahindra financial services");
driver.findElement(By.xpath("//div[@class='fr search']")).sendKeys(Keys.ENTER);
Thread.sleep(4000);
driver.findElement(By.xpath("//a[@id='acc3']//span[@class='rht fr'][contains(text(),'View All')]")).click();
WebElement image = driver.findElement(By.cssSelector("#rph3 > svg > a > text>tspan"));