Created
December 16, 2024 18:33
-
-
Save borodicht/e7e06ea23aaf24569e5eeb44b08dd5c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pages; | |
import com.codeborne.selenide.Condition; | |
import org.openqa.selenium.By; | |
import java.time.Duration; | |
import static com.codeborne.selenide.Selectors.byText; | |
import static com.codeborne.selenide.Selenide.*; | |
public class ProjectsPage { | |
public void openPage() { | |
open("projects"); | |
} | |
public void waitTillOpened() { | |
$(byText("Create new project")).shouldBe(Condition.visible); | |
} | |
public void removeProject(String projectName) { | |
$(byText(projectName)) | |
.ancestor("tr") | |
.find("button[aria-label='Open action menu']") | |
.click(); | |
$("[data-testid=remove]").click(); | |
$(byText("Delete project")).click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment