Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

kobenguyent
Copy link
Collaborator

@kobenguyent kobenguyent commented Nov 22, 2023

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
12 checks passed
@kobenguyent kobenguyent deleted the pplaywright-supports-partial-text-select-option branch November 29, 2023 06:07
@BharathkumarDS
Copy link

BharathkumarDS commented Feb 9, 2024

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