package com.frameworkium.pages.web;

import org.openqa.selenium.support.FindBy;

import ru.yandex.qatools.allure.annotations.Step;
import ru.yandex.qatools.htmlelements.annotations.Name;
import ru.yandex.qatools.htmlelements.element.Select;

import com.frameworkium.pages.internal.BasePage;
import com.frameworkium.pages.internal.Visible;

public class DropdownPage extends BasePage<DropdownPage> {

    @Visible
    @Name("Dropdown list")
    @FindBy(css = "select#dropdown")
    private Select dropdown;

    
    @Step("Return the text displayed in the header")
    public DropdownPage selectFromDropdown(String option) {
    	dropdown.selectByVisibleText(option);
       return this;
    }

    
    @Step("Return the text displayed in the header")
    public String getSelectedOptionText() {
       return dropdown.getFirstSelectedOption().getText();
    }
}

@@ -520,47 +520,39 @@
 ep(%22
-Return the text displayed in the header
+Select option %7B0%7D from dropdown
 %22)%0A 
@@ -711,36 +711,23 @@
 the 
-text displayed in the header
+selected option
 %22)%0A 

Update DropdownPage.java