[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D9JM3VD87GPVVD53R6DM11":3,"skill-same:01M7D9JM3VD87GPVVD53R6DM11":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":14,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M7D9JM3VD87GPVVD53R6DM11","Selenide Testing",null,"Expert-level Selenide UI testing skill for Java applications. Covers concise fluent API, automatic waits, smart selectors, collections, Page Objects, and integration with JUnit 5 and Gradle\u002FMaven builds.","GrupoANDevelopment-m\u002Falberto-ai","GrupoANDevelopment-m","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257455179?v=4","01M7D69X2N2KEVN0SJF6WGM6SH","Antônio  Ndombe","01M7D69X3P5JTT8H8S904N3888",0,"MIT","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fselenide-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: Selenide Testing\ndescription: Expert-level Selenide UI testing skill for Java applications. Covers concise fluent API, automatic waits, smart selectors, collections, Page Objects, and integration with JUnit 5 and Gradle\u002FMaven builds.\nversion: 1.0.0\nauthor: thetestingacademy\nlicense: MIT\ntags: [selenide, java, selenium, ui-testing, fluent-api, auto-wait, browser-testing]\ntestingTypes: [e2e, ui, integration]\nframeworks: [selenide, junit5, selenium]\nlanguages: [java]\ndomains: [web]\nagents: [claude-code, cursor, github-copilot, windsurf, codex, aider, continue, cline, zed, bolt]\n---\n\n# Selenide Testing Skill\n\nYou are an expert QA automation engineer specializing in Selenide UI testing for Java applications. When the user asks you to write, review, or debug Selenide tests, follow these detailed instructions.\n\n## Core Principles\n\n1. **Concise fluent API** -- Use Selenide's `$` and `$$` shortcuts instead of verbose Selenium WebDriver calls. Selenide wraps Selenium to provide a cleaner, more readable API.\n2. **Automatic waits** -- Selenide waits for elements automatically. Never add `Thread.sleep()` or explicit waits unless absolutely necessary.\n3. **Smart selectors** -- Prefer `data-testid` attributes, then CSS selectors. Avoid XPath unless the DOM structure requires it.\n4. **Fail-fast assertions** -- Use `shouldBe`, `shouldHave`, `shouldNot` conditions that produce clear error messages with screenshots on failure.\n5. **Test isolation** -- Each test must be independent. Use `@BeforeEach` to set up clean state. Never rely on test execution order.\n\n## Project Structure\n\nAlways organize Selenide projects with this structure:\n\n```\nsrc\u002F\n  test\u002F\n    java\u002F\n      com\u002Fexample\u002F\n        tests\u002F\n          LoginTest.java\n          DashboardTest.java\n          CheckoutTest.java\n        pages\u002F\n          LoginPage.java\n          DashboardPage.java\n          BasePage.java\n        config\u002F\n          TestConfig.java\n        data\u002F\n          TestDataFactory.java\n        utils\u002F\n          TestHelpers.java\n    resources\u002F\n      selenide.properties\nbuild.gradle        # or pom.xml\n```\n\n## Setup\n\n### Maven\n\n```xml\n\u003Cdependencies>\n    \u003Cdependency>\n        \u003CgroupId>com.codeborne\u003C\u002FgroupId>\n        \u003CartifactId>selenide\u003C\u002FartifactId>\n        \u003Cversion>7.2.0\u003C\u002Fversion>\n        \u003Cscope>test\u003C\u002Fscope>\n    \u003C\u002Fdependency>\n    \u003Cdependency>\n        \u003CgroupId>org.junit.jupiter\u003C\u002FgroupId>\n        \u003CartifactId>junit-jupiter\u003C\u002FartifactId>\n        \u003Cversion>5.10.2\u003C\u002Fversion>\n        \u003Cscope>test\u003C\u002Fscope>\n    \u003C\u002Fdependency>\n\u003C\u002Fdependencies>\n```\n\n### Gradle\n\n```groovy\ndependencies {\n    testImplementation 'com.codeborne:selenide:7.2.0'\n    testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'\n}\n```\n\n### Configuration (selenide.properties)\n\n```properties\nselenide.browser=chrome\nselenide.baseUrl=http:\u002F\u002Flocalhost:3000\nselenide.timeout=10000\nselenide.screenshots=true\nselenide.savePageSource=false\nselenide.headless=false\nselenide.pageLoadTimeout=30000\n```\n\n## Basic Test Patterns\n\n### Login Test\n\n```java\nimport com.codeborne.selenide.*;\nimport static com.codeborne.selenide.Selenide.*;\nimport static com.codeborne.selenide.Condition.*;\nimport org.junit.jupiter.api.Test;\nimport org.junit.jupiter.api.BeforeEach;\n\nclass LoginTest {\n\n    @BeforeEach\n    void setUp() {\n        Configuration.baseUrl = \"http:\u002F\u002Flocalhost:3000\";\n        Configuration.browser = \"chrome\";\n        Configuration.timeout = 10000;\n    }\n\n    @Test\n    void loginWithValidCredentials() {\n        open(\"\u002Flogin\");\n        $(\"#email\").setValue(\"user@test.com\");\n        $(\"#password\").setValue(\"password123\");\n        $(\"button[type='submit']\").click();\n        $(\".dashboard\").shouldBe(visible);\n        $(\".welcome-message\").shouldHave(text(\"Welcome\"));\n    }\n\n    @Test\n    void loginShowsErrorForInvalidCredentials() {\n        open(\"\u002Flogin\");\n        $(\"#email\").setValue(\"wrong@test.com\");\n        $(\"#password\").setValue(\"wrong\");\n        $(\"button[type='submit']\").click();\n        $(\".error-message\").shouldBe(visible)\n            .shouldHave(text(\"Invalid credentials\"));\n    }\n\n    @Test\n    void loginRequiresEmail() {\n        open(\"\u002Flogin\");\n        $(\"#password\").setValue(\"password123\");\n        $(\"button[type='submit']\").click();\n        $(\"#email-error\").shouldBe(visible);\n    }\n}\n```\n\n## Selectors Reference\n\n```java\n\u002F\u002F CSS selectors (preferred)\n$(\"[data-testid='login-btn']\")        \u002F\u002F data-testid (best practice)\n$(\"css-selector\")                     \u002F\u002F Generic CSS\n$(\"#email\")                           \u002F\u002F By ID\n$(\".submit-button\")                   \u002F\u002F By class\n\n\u002F\u002F Text-based selectors\n$(byText(\"Login\"))                    \u002F\u002F Exact text match\n$(withText(\"Welc\"))                   \u002F\u002F Contains text\n$(byTitle(\"Submit Form\"))             \u002F\u002F By title attribute\n\n\u002F\u002F Attribute selectors\n$(byId(\"email\"))                      \u002F\u002F By ID\n$(byName(\"password\"))                 \u002F\u002F By name\n$(byAttribute(\"role\", \"button\"))      \u002F\u002F By any attribute\n\n\u002F\u002F XPath (avoid when possible)\n$(byXpath(\"\u002F\u002Fbutton[@type='submit']\"))\n\n\u002F\u002F Collections\n$$(\"li\").shouldHave(size(5));\n$$(\"li\").first().shouldHave(text(\"Item 1\"));\n$$(\"li\").last().shouldHave(text(\"Item 5\"));\n$$(\"li\").filterBy(text(\"Active\")).shouldHave(size(2));\n$$(\"li\").excludeWith(cssClass(\"disabled\")).shouldHave(size(3));\n$$(\"tr\").findBy(text(\"Alice\")).shouldBe(visible);\n```\n\n## Conditions Reference\n\n```java\n\u002F\u002F Visibility\nelement.shouldBe(visible);\nelement.shouldBe(hidden);\nelement.shouldNotBe(visible);\nelement.shouldBe(exist);\nelement.shouldNot(exist);\n\n\u002F\u002F State\nelement.shouldBe(enabled);\nelement.shouldBe(disabled);\nelement.shouldBe(readonly);\nelement.shouldBe(focused);\nelement.shouldBe(selected);\nelement.shouldBe(checked);\n\n\u002F\u002F Text and values\nelement.shouldHave(text(\"expected\"));\nelement.shouldHave(exactText(\"Exact Match\"));\nelement.shouldHave(textCaseSensitive(\"CaseSensitive\"));\nelement.shouldHave(value(\"input value\"));\nelement.shouldHave(exactValue(\"exact input\"));\n\n\u002F\u002F Attributes and CSS\nelement.shouldHave(attribute(\"href\", \"\u002Flink\"));\nelement.shouldHave(attribute(\"data-state\", \"active\"));\nelement.shouldHave(cssClass(\"active\"));\nelement.shouldHave(cssValue(\"color\", \"rgb(255, 0, 0)\"));\n```\n\n## Page Object Model\n\n### Base Page\n\n```java\nimport com.codeborne.selenide.SelenideElement;\nimport static com.codeborne.selenide.Selenide.*;\n\npublic abstract class BasePage {\n\n    public abstract SelenideElement rootElement();\n\n    public boolean isDisplayed() {\n        return rootElement().isDisplayed();\n    }\n\n    protected void navigateTo(String path) {\n        open(path);\n    }\n}\n```\n\n### Login Page\n\n```java\nimport com.codeborne.selenide.SelenideElement;\nimport static com.codeborne.selenide.Selenide.*;\nimport static com.codeborne.selenide.Condition.*;\n\npublic class LoginPage extends BasePage {\n\n    private final SelenideElement emailField = $(\"#email\");\n    private final SelenideElement passwordField = $(\"#password\");\n    private final SelenideElement submitButton = $(\"[data-testid='login-submit']\");\n    private final SelenideElement errorMessage = $(\".error-message\");\n    private final SelenideElement forgotPasswordLink = $(\"a[href='\u002Fforgot-password']\");\n\n    @Override\n    public SelenideElement rootElement() {\n        return $(\"[data-testid='login-form']\");\n    }\n\n    public LoginPage open() {\n        navigateTo(\"\u002Flogin\");\n        rootElement().shouldBe(visible);\n        return this;\n    }\n\n    public DashboardPage loginAs(String email, String password) {\n        emailField.setValue(email);\n        passwordField.setValue(password);\n        submitButton.click();\n        return new DashboardPage();\n    }\n\n    public LoginPage loginExpectingError(String email, String password) {\n        emailField.setValue(email);\n        passwordField.setValue(password);\n        submitButton.click();\n        errorMessage.shouldBe(visible);\n        return this;\n    }\n\n    public String getErrorMessage() {\n        return errorMessage.getText();\n    }\n}\n```\n\n### Test Using Page Objects\n\n```java\nimport org.junit.jupiter.api.Test;\nimport static com.codeborne.selenide.Condition.*;\n\nclass LoginPageTest {\n\n    private final LoginPage loginPage = new LoginPage();\n\n    @Test\n    void successfulLogin() {\n        loginPage.open()\n            .loginAs(\"user@test.com\", \"password123\");\n        new DashboardPage().welcomeMessage()\n            .shouldHave(text(\"Welcome\"));\n    }\n\n    @Test\n    void invalidLoginShowsError() {\n        loginPage.open()\n            .loginExpectingError(\"bad@test.com\", \"wrong\");\n        assert loginPage.getErrorMessage().contains(\"Invalid\");\n    }\n}\n```\n\n## Collections and Iteration\n\n```java\nimport static com.codeborne.selenide.CollectionCondition.*;\nimport static com.codeborne.selenide.Selenide.$$;\n\n\u002F\u002F Size assertions\n$$(\".todo-item\").shouldHave(size(5));\n$$(\".todo-item\").shouldHave(sizeGreaterThan(3));\n$$(\".todo-item\").shouldHave(sizeGreaterThanOrEqual(5));\n$$(\".todo-item\").shouldHave(sizeLessThan(10));\n\n\u002F\u002F Text assertions on collections\n$$(\".menu-item\").shouldHave(texts(\"Home\", \"About\", \"Contact\"));\n$$(\".menu-item\").shouldHave(exactTexts(\"Home\", \"About\", \"Contact\"));\n$$(\".menu-item\").shouldHave(textsInAnyOrder(\"Contact\", \"Home\", \"About\"));\n\n\u002F\u002F Filtering and finding\n$$(\"tr.user-row\")\n    .filterBy(text(\"Active\"))\n    .shouldHave(size(3));\n\n$$(\"tr.user-row\")\n    .findBy(text(\"Alice\"))\n    .find(\".delete-btn\")\n    .click();\n\n\u002F\u002F Iterating\n$$(\".product-card\").forEach(card -> {\n    card.find(\".price\").shouldBe(visible);\n    card.find(\".title\").shouldNotBe(empty);\n});\n\n\u002F\u002F First \u002F last \u002F get\n$$(\".items\").first().shouldHave(text(\"First\"));\n$$(\".items\").last().shouldHave(text(\"Last\"));\n$$(\".items\").get(2).shouldHave(text(\"Third\"));\n```\n\n## File Upload and Download\n\n```java\n\u002F\u002F Upload\n$(\"input[type='file']\").uploadFile(new File(\"src\u002Ftest\u002Fresources\u002Ftest.pdf\"));\n$(\"input[type='file']\").uploadFromClasspath(\"test.pdf\");\n\n\u002F\u002F Download\nFile file = $(\"a.download-link\").download();\nassertThat(file.getName()).isEqualTo(\"report.pdf\");\nassertThat(file.length()).isGreaterThan(0);\n```\n\n## Working with Frames and Windows\n\n```java\n\u002F\u002F Frames\nswitchTo().frame(\"iframe-name\");\n$(\".inside-frame\").shouldBe(visible);\nswitchTo().defaultContent();\n\n\u002F\u002F New windows\nString originalWindow = WebDriverRunner.getWebDriver().getWindowHandle();\n$(\"a[target='_blank']\").click();\nswitchTo().window(1);\n$(\".new-window-content\").shouldBe(visible);\nswitchTo().window(originalWindow);\n```\n\n## JavaScript Execution\n\n```java\n\u002F\u002F Execute JavaScript\nexecuteJavaScript(\"window.scrollTo(0, document.body.scrollHeight)\");\nlong scrollHeight = executeJavaScript(\"return document.body.scrollHeight\");\n\n\u002F\u002F Execute on element\nexecuteJavaScript(\"arguments[0].click()\", $(\".hidden-button\"));\nexecuteJavaScript(\"arguments[0].scrollIntoView(true)\", $(\".target-element\"));\n```\n\n## Configuration Patterns\n\n```java\nimport com.codeborne.selenide.Configuration;\n\n\u002F\u002F Programmatic configuration\nConfiguration.browser = \"chrome\";\nConfiguration.baseUrl = \"http:\u002F\u002Flocalhost:3000\";\nConfiguration.timeout = 10000;\nConfiguration.headless = true;\nConfiguration.browserSize = \"1920x1080\";\nConfiguration.screenshots = true;\nConfiguration.savePageSource = false;\nConfiguration.reportsFolder = \"build\u002Freports\u002Ftests\";\nConfiguration.downloadsFolder = \"build\u002Fdownloads\";\n\n\u002F\u002F Remote WebDriver configuration\nConfiguration.remote = \"http:\u002F\u002Fselenium-hub:4444\u002Fwd\u002Fhub\";\nConfiguration.browserCapabilities = new DesiredCapabilities();\nConfiguration.browserCapabilities.setCapability(\"browserName\", \"chrome\");\n```\n\n## CI\u002FCD Integration\n\n### GitHub Actions\n\n```yaml\nname: Selenide Tests\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-java@v4\n        with:\n          java-version: '17'\n          distribution: 'temurin'\n      - name: Run tests\n        run: .\u002Fgradlew test\n      - name: Upload reports\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: selenide-reports\n          path: build\u002Freports\u002Ftests\u002F\n```\n\n## Best Practices\n\n1. **Use data-testid selectors** -- Add `data-testid` attributes to elements specifically for testing. They survive CSS refactors and are explicit about their purpose.\n2. **Let Selenide handle waits** -- Never use `Thread.sleep()`. Selenide's built-in implicit waits handle dynamic content. Only increase `Configuration.timeout` if you have genuinely slow pages.\n3. **One assertion per concept** -- Group related assertions but keep each test focused on one behavior. Use descriptive test method names.\n4. **Page Object encapsulation** -- Never expose `SelenideElement` fields publicly. Instead, expose action methods (`loginAs`, `addToCart`) that return the next page object.\n5. **Use collections wisely** -- Use `$$()` for lists and tables. Filter with `filterBy` and `findBy` instead of iterating manually.\n6. **Configure in properties file** -- Use `selenide.properties` for environment-specific config. Override in CI with system properties (`-Dselenide.headless=true`).\n7. **Screenshot on failure** -- Selenide captures screenshots automatically on failure. Configure `reportsFolder` to a CI-accessible location.\n8. **Clean browser state** -- Use `@BeforeEach` with `Selenide.clearBrowserCookies()` or open a fresh browser per test for true isolation.\n9. **Avoid over-abstracting** -- Page Objects should match user mental models. Don't create deep inheritance hierarchies or overly generic helpers.\n10. **Run headless in CI** -- Set `Configuration.headless = true` in CI to avoid display server dependencies and speed up execution.\n\n## Anti-Patterns\n\n1. **Thread.sleep() for synchronization** -- Never use `Thread.sleep()`. Selenide's auto-waiting handles element readiness. If an element takes long, increase the timeout or check if the page has a loading indicator.\n2. **XPath as default selector strategy** -- XPath is brittle and hard to read. Use CSS selectors or Selenide's text-based finders instead.\n3. **Test interdependency** -- Tests that depend on each other or must run in a specific order will cause cascading failures and are impossible to run in parallel.\n4. **Hardcoded URLs** -- Never hardcode full URLs in tests. Use `Configuration.baseUrl` and relative paths.\n5. **Ignoring collection assertions** -- Using `$$().get(0).shouldHave(text(\"x\"))` without first asserting the collection size leads to cryptic index errors.\n6. **Giant test methods** -- Tests with 50+ lines of actions and assertions are unreadable. Break them into smaller focused tests or extract helper methods.\n7. **Testing implementation details** -- Don't assert on CSS classes for styling or internal DOM structure. Assert on user-visible behavior.\n8. **Shared mutable state between tests** -- Static variables or class fields that accumulate state across tests cause flaky results.\n9. **Catching exceptions in tests** -- Don't wrap Selenide calls in try\u002Fcatch. Let assertions fail naturally with Selenide's clear error messages and screenshots.\n10. **Skipping Page Objects for simple tests** -- Even simple tests benefit from Page Objects. Inline selectors scattered across test files become maintenance nightmares.\n\n## Run Commands\n\n```bash\n# Maven\nmvn test\nmvn test -Dselenide.headless=true\nmvn test -Dtest=LoginTest\nmvn test -Dselenide.browser=firefox\n\n# Gradle\n.\u002Fgradlew test\n.\u002Fgradlew test --tests \"com.example.tests.LoginTest\"\n.\u002Fgradlew test -Dselenide.headless=true\n```\n","# Selenide Testing Skill\n\nYou are an expert QA automation engineer specializing in Selenide UI testing for Java applications. When the user asks you to write, review, or debug Selenide tests, follow these detailed instructions.\n\n## Core Principles\n\n1. **Concise fluent API** -- Use Selenide's `$` and `$$` shortcuts instead of verbose Selenium WebDriver calls. Selenide wraps Selenium to provide a cleaner, more readable API.\n2. **Automatic waits** -- Selenide waits for elements automatically. Never add `Thread.sleep()` or explicit waits unless absolutely necessary.\n3. **Smart selectors** -- Prefer `data-testid` attributes, then CSS selectors. Avoid XPath unless the DOM structure requires it.\n4. **Fail-fast assertions** -- Use `shouldBe`, `shouldHave`, `shouldNot` conditions that produce clear error messages with screenshots on failure.\n5. **Test isolation** -- Each test must be independent. Use `@BeforeEach` to set up clean state. Never rely on test execution order.\n\n## Project Structure\n\nAlways organize Selenide projects with this structure:\n\n```\nsrc\u002F\n  test\u002F\n    java\u002F\n      com\u002Fexample\u002F\n        tests\u002F\n          LoginTest.java\n          DashboardTest.java\n          CheckoutTest.java\n        pages\u002F\n          LoginPage.java\n          DashboardPage.java\n          BasePage.java\n        config\u002F\n          TestConfig.java\n        data\u002F\n          TestDataFactory.java\n        utils\u002F\n          TestHelpers.java\n    resources\u002F\n      selenide.properties\nbuild.gradle        # or pom.xml\n```\n\n## Setup\n\n### Maven\n\n```xml\n\u003Cdependencies>\n    \u003Cdependency>\n        \u003CgroupId>com.codeborne\u003C\u002FgroupId>\n        \u003CartifactId>selenide\u003C\u002FartifactId>\n        \u003Cversion>7.2.0\u003C\u002Fversion>\n        \u003Cscope>test\u003C\u002Fscope>\n    \u003C\u002Fdependency>\n    \u003Cdependency>\n        \u003CgroupId>org.junit.jupiter\u003C\u002FgroupId>\n        \u003CartifactId>junit-jupiter\u003C\u002FartifactId>\n        \u003Cversion>5.10.2\u003C\u002Fversion>\n        \u003Cscope>test\u003C\u002Fscope>\n    \u003C\u002Fdependency>\n\u003C\u002Fdependencies>\n```\n\n### Gradle\n\n```groovy\ndependencies {\n    testImplementation 'com.codeborne:selenide:7.2.0'\n    testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'\n}\n```\n\n### Configuration (selenide.properties)\n\n```properties\nselenide.browser=chrome\nselenide.baseUrl=http:\u002F\u002Flocalhost:3000\nselenide.timeout=10000\nselenide.screenshots=true\nselenide.savePageSource=false\nselenide.headless=false\nselenide.pageLoadTimeout=30000\n```\n\n## Basic Test Patterns\n\n### Login Test\n\n```java\nimport com.codeborne.selenide.*;\nimport static com.codeborne.selenide.Selenide.*;\nimport static com.codeborne.selenide.Condition.*;\nimport org.junit.jupiter.api.Test;\nimport org.junit.jupiter.api.BeforeEach;\n\nclass LoginTest {\n\n    @BeforeEach\n    void setUp() {\n        Configuration.baseUrl = \"http:\u002F\u002Flocalhost:3000\";\n        Configuration.browser = \"chrome\";\n        Configuration.timeout = 10000;\n    }\n\n    @Test\n    void loginWithValidCredentials() {\n        open(\"\u002Flogin\");\n        $(\"#email\").setValue(\"user@test.com\");\n        $(\"#password\").setValue(\"password123\");\n        $(\"button[type='submit']\").click();\n        $(\".dashboard\").shouldBe(visible);\n        $(\".welcome-message\").shouldHave(text(\"Welcome\"));\n    }\n\n    @Test\n    void loginShowsErrorForInvalidCredentials() {\n        open(\"\u002Flogin\");\n        $(\"#email\").setValue(\"wrong@test.com\");\n        $(\"#password\").setValue(\"wrong\");\n        $(\"button[type='submit']\").click();\n        $(\".error-message\").shouldBe(visible)\n            .shouldHave(text(\"Invalid credentials\"));\n    }\n\n    @Test\n    void loginRequiresEmail() {\n        open(\"\u002Flogin\");\n        $(\"#password\").setValue(\"password123\");\n        $(\"button[type='submit']\").click();\n        $(\"#email-error\").shouldBe(visible);\n    }\n}\n```\n\n## Selectors Reference\n\n```java\n\u002F\u002F CSS selectors (preferred)\n$(\"[data-testid='login-btn']\")        \u002F\u002F data-testid (best practice)\n$(\"css-selector\")                     \u002F\u002F Generic CSS\n$(\"#email\")                           \u002F\u002F By ID\n$(\".submit-button\")                   \u002F\u002F By class\n\n\u002F\u002F Text-based selectors\n$(byText(\"Login\"))                    \u002F\u002F Exact text match\n$(withText(\"Welc\"))                   \u002F\u002F Contains text\n$(byTitle(\"Submit Form\"))             \u002F\u002F By title attribute\n\n\u002F\u002F Attribute selectors\n$(byId(\"email\"))                      \u002F\u002F By ID\n$(byName(\"password\"))                 \u002F\u002F By name\n$(byAttribute(\"role\", \"button\"))      \u002F\u002F By any attribute\n\n\u002F\u002F XPath (avoid when possible)\n$(byXpath(\"\u002F\u002Fbutton[@type='submit']\"))\n\n\u002F\u002F Collections\n$$(\"li\").shouldHave(size(5));\n$$(\"li\").first().shouldHave(text(\"Item 1\"));\n$$(\"li\").last().shouldHave(text(\"Item 5\"));\n$$(\"li\").filterBy(text(\"Active\")).shouldHave(size(2));\n$$(\"li\").excludeWith(cssClass(\"disabled\")).shouldHave(size(3));\n$$(\"tr\").findBy(text(\"Alice\")).shouldBe(visible);\n```\n\n## Conditions Reference\n\n```java\n\u002F\u002F Visibility\nelement.shouldBe(visible);\nelement.shouldBe(hidden);\nelement.shouldNotBe(visible);\nelement.shouldBe(exist);\nelement.shouldNot(exist);\n\n\u002F\u002F State\nelement.shouldBe(enabled);\nelement.shouldBe(disabled);\nelement.shouldBe(readonly);\nelement.shouldBe(focused);\nelement.shouldBe(selected);\nelement.shouldBe(checked);\n\n\u002F\u002F Text and values\nelement.shouldHave(text(\"expected\"));\nelement.shouldHave(exactText(\"Exact Match\"));\nelement.shouldHave(textCaseSensitive(\"CaseSensitive\"));\nelement.shouldHave(value(\"input value\"));\nelement.shouldHave(exactValue(\"exact input\"));\n\n\u002F\u002F Attributes and CSS\nelement.shouldHave(attribute(\"href\", \"\u002Flink\"));\nelement.shouldHave(attribute(\"data-state\", \"active\"));\nelement.shouldHave(cssClass(\"active\"));\nelement.shouldHave(cssValue(\"color\", \"rgb(255, 0, 0)\"));\n```\n\n## Page Object Model\n\n### Base Page\n\n```java\nimport com.codeborne.selenide.SelenideElement;\nimport static com.codeborne.selenide.Selenide.*;\n\npublic abstract class BasePage {\n\n    public abstract SelenideElement rootElement();\n\n    public boolean isDisplayed() {\n        return rootElement().isDisplayed();\n    }\n\n    protected void navigateTo(String path) {\n        open(path);\n    }\n}\n```\n\n### Login Page\n\n```java\nimport com.codeborne.selenide.SelenideElement;\nimport static com.codeborne.selenide.Selenide.*;\nimport static com.codeborne.selenide.Condition.*;\n\npublic class LoginPage extends BasePage {\n\n    private final SelenideElement emailField = $(\"#email\");\n    private final SelenideElement passwordField = $(\"#password\");\n    private final SelenideElement submitButton = $(\"[data-testid='login-submit']\");\n    private final SelenideElement errorMessage = $(\".error-message\");\n    private final SelenideElement forgotPasswordLink = $(\"a[href='\u002Fforgot-password']\");\n\n    @Override\n    public SelenideElement rootElement() {\n        return $(\"[data-testid='login-form']\");\n    }\n\n    public LoginPage open() {\n        navigateTo(\"\u002Flogin\");\n        rootElement().shouldBe(visible);\n        return this;\n    }\n\n    public DashboardPage loginAs(String email, String password) {\n        emailField.setValue(email);\n        passwordField.setValue(password);\n        submitButton.click();\n        return new DashboardPage();\n    }\n\n    public LoginPage loginExpectingError(String email, String password) {\n        emailField.setValue(email);\n        passwordField.setValue(password);\n        submitButton.click();\n        errorMessage.shouldBe(visible);\n        return this;\n    }\n\n    public String getErrorMessage() {\n        return errorMessage.getText();\n    }\n}\n```\n\n### Test Using Page Objects\n\n```java\nimport org.junit.jupiter.api.Test;\nimport static com.codeborne.selenide.Condition.*;\n\nclass LoginPageTest {\n\n    private final LoginPage loginPage = new LoginPage();\n\n    @Test\n    void successfulLogin() {\n        loginPage.open()\n            .loginAs(\"user@test.com\", \"password123\");\n        new DashboardPage().welcomeMessage()\n            .shouldHave(text(\"Welcome\"));\n    }\n\n    @Test\n    void invalidLoginShowsError() {\n        loginPage.open()\n            .loginExpectingError(\"bad@test.com\", \"wrong\");\n        assert loginPage.getErrorMessage().contains(\"Invalid\");\n    }\n}\n```\n\n## Collections and Iteration\n\n```java\nimport static com.codeborne.selenide.CollectionCondition.*;\nimport static com.codeborne.selenide.Selenide.$$;\n\n\u002F\u002F Size assertions\n$$(\".todo-item\").shouldHave(size(5));\n$$(\".todo-item\").shouldHave(sizeGreaterThan(3));\n$$(\".todo-item\").shouldHave(sizeGreaterThanOrEqual(5));\n$$(\".todo-item\").shouldHave(sizeLessThan(10));\n\n\u002F\u002F Text assertions on collections\n$$(\".menu-item\").shouldHave(texts(\"Home\", \"About\", \"Contact\"));\n$$(\".menu-item\").shouldHave(exactTexts(\"Home\", \"About\", \"Contact\"));\n$$(\".menu-item\").shouldHave(textsInAnyOrder(\"Contact\", \"Home\", \"About\"));\n\n\u002F\u002F Filtering and finding\n$$(\"tr.user-row\")\n    .filterBy(text(\"Active\"))\n    .shouldHave(size(3));\n\n$$(\"tr.user-row\")\n    .findBy(text(\"Alice\"))\n    .find(\".delete-btn\")\n    .click();\n\n\u002F\u002F Iterating\n$$(\".product-card\").forEach(card -> {\n    card.find(\".price\").shouldBe(visible);\n    card.find(\".title\").shouldNotBe(empty);\n});\n\n\u002F\u002F First \u002F last \u002F get\n$$(\".items\").first().shouldHave(text(\"First\"));\n$$(\".items\").last().shouldHave(text(\"Last\"));\n$$(\".items\").get(2).shouldHave(text(\"Third\"));\n```\n\n## File Upload and Download\n\n```java\n\u002F\u002F Upload\n$(\"input[type='file']\").uploadFile(new File(\"src\u002Ftest\u002Fresources\u002Ftest.pdf\"));\n$(\"input[type='file']\").uploadFromClasspath(\"test.pdf\");\n\n\u002F\u002F Download\nFile file = $(\"a.download-link\").download();\nassertThat(file.getName()).isEqualTo(\"report.pdf\");\nassertThat(file.length()).isGreaterThan(0);\n```\n\n## Working with Frames and Windows\n\n```java\n\u002F\u002F Frames\nswitchTo().frame(\"iframe-name\");\n$(\".inside-frame\").shouldBe(visible);\nswitchTo().defaultContent();\n\n\u002F\u002F New windows\nString originalWindow = WebDriverRunner.getWebDriver().getWindowHandle();\n$(\"a[target='_blank']\").click();\nswitchTo().window(1);\n$(\".new-window-content\").shouldBe(visible);\nswitchTo().window(originalWindow);\n```\n\n## JavaScript Execution\n\n```java\n\u002F\u002F Execute JavaScript\nexecuteJavaScript(\"window.scrollTo(0, document.body.scrollHeight)\");\nlong scrollHeight = executeJavaScript(\"return document.body.scrollHeight\");\n\n\u002F\u002F Execute on element\nexecuteJavaScript(\"arguments[0].click()\", $(\".hidden-button\"));\nexecuteJavaScript(\"arguments[0].scrollIntoView(true)\", $(\".target-element\"));\n```\n\n## Configuration Patterns\n\n```java\nimport com.codeborne.selenide.Configuration;\n\n\u002F\u002F Programmatic configuration\nConfiguration.browser = \"chrome\";\nConfiguration.baseUrl = \"http:\u002F\u002Flocalhost:3000\";\nConfiguration.timeout = 10000;\nConfiguration.headless = true;\nConfiguration.browserSize = \"1920x1080\";\nConfiguration.screenshots = true;\nConfiguration.savePageSource = false;\nConfiguration.reportsFolder = \"build\u002Freports\u002Ftests\";\nConfiguration.downloadsFolder = \"build\u002Fdownloads\";\n\n\u002F\u002F Remote WebDriver configuration\nConfiguration.remote = \"http:\u002F\u002Fselenium-hub:4444\u002Fwd\u002Fhub\";\nConfiguration.browserCapabilities = new DesiredCapabilities();\nConfiguration.browserCapabilities.setCapability(\"browserName\", \"chrome\");\n```\n\n## CI\u002FCD Integration\n\n### GitHub Actions\n\n```yaml\nname: Selenide Tests\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-java@v4\n        with:\n          java-version: '17'\n          distribution: 'temurin'\n      - name: Run tests\n        run: .\u002Fgradlew test\n      - name: Upload reports\n        if: always()\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: selenide-reports\n          path: build\u002Freports\u002Ftests\u002F\n```\n\n## Best Practices\n\n1. **Use data-testid selectors** -- Add `data-testid` attributes to elements specifically for testing. They survive CSS refactors and are explicit about their purpose.\n2. **Let Selenide handle waits** -- Never use `Thread.sleep()`. Selenide's built-in implicit waits handle dynamic content. Only increase `Configuration.timeout` if you have genuinely slow pages.\n3. **One assertion per concept** -- Group related assertions but keep each test focused on one behavior. Use descriptive test method names.\n4. **Page Object encapsulation** -- Never expose `SelenideElement` fields publicly. Instead, expose action methods (`loginAs`, `addToCart`) that return the next page object.\n5. **Use collections wisely** -- Use `$$()` for lists and tables. Filter with `filterBy` and `findBy` instead of iterating manually.\n6. **Configure in properties file** -- Use `selenide.properties` for environment-specific config. Override in CI with system properties (`-Dselenide.headless=true`).\n7. **Screenshot on failure** -- Selenide captures screenshots automatically on failure. Configure `reportsFolder` to a CI-accessible location.\n8. **Clean browser state** -- Use `@BeforeEach` with `Selenide.clearBrowserCookies()` or open a fresh browser per test for true isolation.\n9. **Avoid over-abstracting** -- Page Objects should match user mental models. Don't create deep inheritance hierarchies or overly generic helpers.\n10. **Run headless in CI** -- Set `Configuration.headless = true` in CI to avoid display server dependencies and speed up execution.\n\n## Anti-Patterns\n\n1. **Thread.sleep() for synchronization** -- Never use `Thread.sleep()`. Selenide's auto-waiting handles element readiness. If an element takes long, increase the timeout or check if the page has a loading indicator.\n2. **XPath as default selector strategy** -- XPath is brittle and hard to read. Use CSS selectors or Selenide's text-based finders instead.\n3. **Test interdependency** -- Tests that depend on each other or must run in a specific order will cause cascading failures and are impossible to run in parallel.\n4. **Hardcoded URLs** -- Never hardcode full URLs in tests. Use `Configuration.baseUrl` and relative paths.\n5. **Ignoring collection assertions** -- Using `$$().get(0).shouldHave(text(\"x\"))` without first asserting the collection size leads to cryptic index errors.\n6. **Giant test methods** -- Tests with 50+ lines of actions and assertions are unreadable. Break them into smaller focused tests or extract helper methods.\n7. **Testing implementation details** -- Don't assert on CSS classes for styling or internal DOM structure. Assert on user-visible behavior.\n8. **Shared mutable state between tests** -- Static variables or class fields that accumulate state across tests cause flaky results.\n9. **Catching exceptions in tests** -- Don't wrap Selenide calls in try\u002Fcatch. Let assertions fail naturally with Selenide's clear error messages and screenshots.\n10. **Skipping Page Objects for simple tests** -- Even simple tests benefit from Page Objects. Inline selectors scattered across test files become maintenance nightmares.\n\n## Run Commands\n\n```bash\n# Maven\nmvn test\nmvn test -Dselenide.headless=true\nmvn test -Dtest=LoginTest\nmvn test -Dselenide.browser=firefox\n\n# Gradle\n.\u002Fgradlew test\n.\u002Fgradlew test --tests \"com.example.tests.LoginTest\"\n.\u002Fgradlew test -Dselenide.headless=true\n```\n",{"name":5,"tags":24,"agents":32,"author":43,"domains":44,"license":15,"version":46,"languages":47,"frameworks":48,"description":7,"testingTypes":50},[25,26,27,28,29,30,31],"selenide","java","selenium","ui-testing","fluent-api","auto-wait","browser-testing",[33,34,35,36,37,38,39,40,41,42],"claude-code","cursor","github-copilot","windsurf","codex","aider","continue","cline","zed","bolt","thetestingacademy",[45],"web","1.0.0",[26],[25,49,27],"junit5",[51,52,53],"e2e","ui","integration","main","eac438ea9216a7cb8a570cab803eb01eeafc6793","skills\u002Fqa\u002Fselenide-testing","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m","https:\u002F\u002Fid-preview--d5bef06d-6c9e-4563-a3d4-a855b9d61610.lovable.app\u002F","Eu sou Antonio B. B. Ndombe \r\nEu sou um Pesquisador e desenvolvedor de sistema autonomia cognitivos, fundador de sistemas ODCs ( organismos digital conscientes)","2026-11-04 06:53:39",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Selenide Testing\"",{"tool":68,"command":69},"bunx","bunx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Selenide Testing\"",{"tool":71,"command":72},"pnpm","pnpm dlx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Selenide Testing\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fselenide-testing\u002FSKILL.md",true,[],[77,85,92,99,106,113],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DASC6FSCJP49JZBSK0NY1Z","nemoclaw-user-reference","Describes the NemoClaw integration layer and blueprint architecture and how they orchestrate compatible agent sandboxes. Use when looking up architecture, agent integration, plugin structure, or blueprint design. Trigger keywords - nemoclaw architecture, nemoclaw agent architecture, nemoclaw plugin blueprint structure, nemoclaw vs openshell, which cli, nemoclaw cli, openshell cli, sandbox commands, nemoclaw cli commands, nemoclaw command reference, nemoclaw network policy, sandbox egress control operator approval, nemoclaw troubleshooting, nemoclaw debug sandbox issues.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-reference\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7DAS5S79VK33XFGVAM2TFWF","nemoclaw-user-overview","Explains how OpenClaw, OpenShell, and NemoClaw form the ecosystem, NemoClaw's position in the stack, what NemoClaw adds beyond the community sandbox, and when to prefer NemoClaw versus integrating OpenShell and OpenClaw directly. Use when users ask about the relationship between OpenClaw, OpenShell, and NemoClaw, or when to use NemoClaw versus OpenShell. Trigger keywords - nemoclaw ecosystem, openclaw openshell, nemoclaw vs openshell, sandboxed openclaw, how nemoclaw works, nemoclaw sandbox lifecycle blueprint, nemoclaw overview, openclaw always-on assistants, nvidia openshell, nvidia nemotron, nemoclaw release notes, nemoclaw changelog.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-overview\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7DAS0PQEMET5MNGZ1ABSZVS","nemoclaw-user-monitor-sandbox","Inspects sandbox health, traces agent behavior, and diagnoses problems. Use when monitoring a running sandbox, debugging agent issues, or checking sandbox logs. Trigger keywords - monitor nemoclaw sandbox, debug nemoclaw agent issues.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-monitor-sandbox\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7DARQYGF7E9A69VH6S3CGN9","nemoclaw-user-manage-sandboxes","Explains operational tasks after the quickstart: listing sandboxes, status and health checks, logs, diagnostics, port forwards, multiple sandboxes, credential reset, rebuilds, network presets, upgrades, and uninstall. Trigger keywords - manage nemoclaw sandboxes, nemoclaw status, nemoclaw list, nemoclaw dashboard port, nemoclaw rebuild, nemoclaw upgrade sandboxes, nemoclaw uninstall, sandbox mutability, sandbox runtime configuration, sandbox rebuild, nemoclaw backup, nemoclaw restore, workspace backup, openshell sandbox download upload, nemoclaw messaging channels, nemoclaw telegram, nemoclaw discord, nemoclaw slack, nemoclaw wechat, nemoclaw whatsapp, openshell channel messaging, nemoclaw workspace files, soul.md, user.md, identity.md, agents.md, sandbox persistence.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-sandboxes\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7DARH8BRTG51TRCAB7YWDJ4","nemoclaw-user-manage-policy","Adds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint access. Trigger keywords - customize nemoclaw network policy, sandbox egress policy configuration, nemoclaw integration policy examples, post-install policy setup, openshell approval workflow, policy preset, nemoclaw approve network requests, sandbox egress approval tui.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-policy\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7DARAT62M2VR37590VCZ5NS","nemoclaw-user-get-started","Installs NemoClaw, launches a sandbox, and runs the first agent prompt. Use when onboarding, installing, or launching a NemoClaw sandbox for the first time. Trigger keywords - nemoclaw quickstart, install nemoclaw openclaw sandbox, nemohermes quickstart, hermes agent nemoclaw, run hermes openshell sandbox, nemoclaw prerequisites, nemoclaw supported platforms, nemoclaw hardware software, nemoclaw windows wsl2 setup, nemoclaw install windows docker desktop.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-get-started\u002FSKILL.md",[],[]]