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)
        {

        }
    }
4

1 に答える 1