2011-09-28 5 views

답변

0

텍스트 정렬이 HTML로 직접 코딩되는 경우 assertElementPresent() 메서드와 적절한 XPath 로케이터를 사용하여 원하는대로 할 수 있습니다. 예를 들어 다음과 같은 텍스트

<p id="paragraph" align="right">Text text text text text text text</p> 

을 확인하기 위해 당신은 당신이 예를 들어 대해 getAttribute 명령을 활용할 수

selenium.isElementPresent("//p[@id='paragraph' and @align='right']"); 
관련 문제