Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Using `step.retry()` with I.selectOption throws an error.

Open
#5,130 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
testing

Research direction

Start by tracing the step.retry() option handling for I.selectOption, comparing it with the working I.click example in the reproduction. Confirm the behavior against CodeceptJS 3.7.4 and determine what retry usage should be supported or documented; done means selectOption no longer throws when given the documented retry option and coverage verifies it.

Written by the indexing model from the issue text.

Description

stale
🐛 Bug Report
Description

Using step.retry() with I.selectOption throws an error.
According to the documentation (Step Options), this works with I.click, but it doesn’t seem to work with I.selectOption.

Also, I noticed that I.retry() is deprecated, so I am unsure what the recommended way is to apply retries with selectOption.


🔄 Steps to Reproduce
Scenario('some test', async ({ I }) => {
  I.click('something', step.retry(2));
  I.selectOption('Username', 'user1', step.retry(2)); // throws error 
});
Image

Version: 3.7.4

Dominant language
JavaScript
Stars
4.2k
Forks
756
Avg merge
2d 9h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from codeceptjs/CodeceptJS

All issues in codeceptjs/CodeceptJS

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.