codeceptjs / codeceptjs/CodeceptJS

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

Open
#5,130 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
JavaScript
Stars
4.2k
Forks
757
Avg merge
2d 9h
Merged PRs (30d)
16

Description

### 🐛 Bug Report

#### Description
Using `step.retry()` with `I.selectOption` throws an error.
According to the documentation ([Step Options](https://codecept.io/changelog/?#%F0%9F%A5%BE-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
```js
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.