Skip to content

Add SplitPanel component #59

@feathergrass

Description

@feathergrass

It would be nice to have methods: Sidebar.setOpen(Boolean), Sidebar.isDisplayed().

Now I use the next realization of the Sidebar.

public class Sidebar extends Composite<Sidebar> {
    public void open() {
        sleep(300);
        if ($(By.className("c-splitpanel-dock-button-left")).isDisplayed()) return;
        SelenideElement splitpanelButtonRight = $(By.className("c-splitpanel-dock-button-right"));
        splitpanelButtonRight.shouldBe(Condition.visible);

        while (splitpanelButtonRight.isDisplayed()) {
            splitpanelButtonRight.click();
            $(By.className("c-splitpanel-dock-button-left")).shouldBe(Condition.visible);
            splitpanelButtonRight = $(By.className("c-splitpanel-dock-button-right"));
        }
    }
}

Known issue: Sometimes it opens search folder.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions