0
@When("^user clicks linkedin button of the first news item$")
public void user_clicks_linkedin_button_of_the_first_news_item()
{
try
{
firstSocialShareElement = driver.findElement(By.className("social-share-linkedin"));
if(firstSocialShareElement!=null && firstSocialShareElement.isDisplayed())
{
firstSocialShareElement.click();
}
}
catch(NoSuchElementException e)
{
}
}
클릭하려는 페이지의 html을 볼 수 있습니까? (선호 URL) – sircapsalot
현재로서는 요소가 없습니다. 그 뉴스 아이템 데이터가 동적 인 시나리오가 있습니다. 시나리오가 하나도 없을 것입니다. 지금은 예외입니다.하지만 예외를 잡는 이유는 잡히지 않고 콘솔에 나타납니다. –