2017-03-05 8 views

답변

0

어쩌면이 같은 필요를

By(xpath("//input[@ng-model='newInsight.id'])) 
?
0

아니면이?

$("input[ng-model='newInsight.id']").setValue(value); 
0
$(By.xPath("//tr[./th[text()='Id']]")).find("input").setValue("some text) 

또는 추가 찾기 없음()

$(By.xPath("//tr[./th[text()='Id']]//input")).setValue("some text) 
0

CSS 선택기를 사용하여 다음 옵션을 사용할 수도 있습니다.

String str="th[class*='basicPropertiesName']"; 
SelenideElement element =$(str); 

또는

String str="th:contains('Id')"; 
SelenideElement element =$(str);