Skip to content

improvement(playwright): support partial string for option - #4016

Merged
kobenguyent merged 2 commits into
3.xfrom
pplaywright-supports-partial-text-select-option
Nov 29, 2023
Merged

improvement(playwright): support partial string for option#4016
kobenguyent merged 2 commits into
3.xfrom
pplaywright-supports-partial-text-select-option

Conversation

@kobenguyent

@kobenguyent kobenguyent commented Nov 22, 2023

Copy link
Copy Markdown
Collaborator

Motivation/Description of the PR

      await I.amOnPage('/form/select');
      await I.selectOption('Select your age', '21-');

Screenshot 2023-11-22 at 12 59 30

Applicable helpers:

  • Playwright

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 ff81e2a into 3.x Nov 29, 2023
@kobenguyent
kobenguyent deleted the pplaywright-supports-partial-text-select-option branch November 29, 2023 06:07
@BharathkumarDS

BharathkumarDS commented Feb 9, 2024

Copy link
Copy Markdown

HI @kobenguyent, and @Arhell, We have been experiencing a major issue with the select options from the drop downs since this build got deployed ( from 3.5.10).

locator.selectOption: Timeout 60000ms exceeded. =========================== logs =========================== waiting for locator('xpath=//select[@data-cy="Select-serviceType"]').first() locator resolved to <select id="serviceType" name="serviceType" class="form-…>…</select> selecting specified option(s) did not find some options - waiting... ============================================================ at Playwright.selectOption (/app/node_modules/codeceptjs/lib/helper/Playwright.js:1815:14) at async Test.<anonymous> (tests/BKS/ConsumeBKSfromSBandValidateRefeer_test.js:147:23)

It impacted all the I.selectOption codes in the entire project. Please check and fix this issue.
Thanks.
In any case: You can contact me at github.

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.

Playwright Helper - Support the partial match with selectOption

3 participants