我试图把这个xpath放在eclipse中,但它不起作用。任何的想法?我不得不说我在HER’S SISTEM S.A之间放了“”,因为这个名字也有“’”所以我必须用“”来指定……
这是解决方案。
WebElement SeleccionCuentaDeOportunidad =findBy(String.format("(//*[contains(@title,'Jonathan')]//parent::span[1]/parent::th[1]//following-sibling::td[position()=1]//child::a[1])[@title=\"HER'S SISTEM S.A.\"]"))