All skills
fugazi avatar

/webapp-selenium-testing

@ef704d5

Author and maintain versioned Selenium WebDriver tests with Java and JUnit 5. Use for creating, debugging, or running Selenium specs, implementing Page Objects, handling explicit waits, capturing screenshots, or setting up Maven test projects. Supports Chrome, Firefox, and Edge. Keywords: Selenium WebDriver, Java, JUnit 5, Page Object Model, explicit waits, Maven, screenshots.

Use this Skill: https://skilld.dev/gh/fugazi/test-automation-skills-agents/webapp-selenium-testing

This session only. Nothing lands on disk.

referenceslocator-strategies-quick-reference.md

≈380 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Locator Strategies Quick Reference

Part of the webapp-selenium-testing skill. See SKILL.md for full context.

Related: this file was split from the original locator-strategies.md. See the other related files in this folder.

Quick Reference

Need Locator
Button by ID By.id("submit-btn")
Input by name By.name("email")
By test ID By.cssSelector("[data-testid='name']")
By aria-label By.cssSelector("[aria-label='Close']")
By type By.cssSelector("input[type='password']")
Link by text By.linkText("Sign up")
Row in table By.cssSelector("table tbody tr:nth-child(2)")
By text (XPath) By.xpath("//button[text()='Submit']")
Parent element By.xpath("//input[@id='x']/parent::div")

Locator Checklist

Before implementing a locator, verify:

  • Is there a unique ID? → Use By.id()
  • Is there a data-testid? → Use By.cssSelector("[data-testid='x']")
  • Is there a unique name? → Use By.name()
  • Can I use semantic CSS? → Use By.cssSelector()
  • Do I need text matching? → Consider XPath
  • Is it an anchor tag? → Consider By.linkText()
  • Am I using absolute XPath? → Refactor immediately!

Source: SKILL.md on GitHub

1 warning14d4 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    The skill provides templates and scripts for Selenium WebDriver testing in Java. It is categorized as low risk due to potential indirect prompt injection vulnerabilities inherent in browser automation and the use of JavaScript execution in the browser context.

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

  • Runlayer6mo

    1/6 files flagged

Signed by skilld at ef704d5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated 2 months ago

README badge

README badge for fugazi/test-automation-skills-agents/webapp-selenium-testing