Skip to content

feat: expose WebElement - #4043

Merged
kobenguyent merged 1 commit into
3.xfrom
feat-locator-web-elements
Dec 4, 2023
Merged

feat: expose WebElement#4043
kobenguyent merged 1 commit into
3.xfrom
feat-locator-web-elements

Conversation

@kobenguyent

Copy link
Copy Markdown
Collaborator

Motivation/Description of the PR

Now we expose the WebElements that are returned by the WebHelper and you could make the subsequence actions on them.

// Playwright helper would return the Locator

I.amOnPage('/form/focus_blur_elements');
const webElements = await I.grabWebElements('#button');
webElements[0].click();

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver

Type of change

  • 🚀 New functionality

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent
kobenguyent merged commit 154f2f7 into 3.x Dec 4, 2023
@kobenguyent
kobenguyent deleted the feat-locator-web-elements branch December 4, 2023 11:34
@DavertMik

Copy link
Copy Markdown
Contributor

I like this feature, thanks @kobenguyent !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce CodecetptJS WebElement Class to mirror chosen helpers' element instance

3 participants