Skip to content

How to refer to an array element in Selenium IDE Version 4 #1846

Open
@heandping

Description

Hi Support,
Im running a simple side file which is using assert against an array element, this command runs well in version 3, but fails in version 4, I may guess there is a different way to refer to an array.

Command is assert text | locator | ${${thaiLang[1]}} -- thaiLang is an array which has been defined already

as you can see, same command running in V3 pass.
image

but running in v4 fail.
image

Error details as below:
5:29:43 PM [error] [
r [Error]: Actual value 'รหัสองค์กร' did not match '${thaiLang[1]}' during assert:codePlace:${thaiLang[1]}
at g.call (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/webdriver.ts:1102:13)
at g.existingCommandName (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/preprocessors.ts:52:19)
at executor (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback-tree/command-node.ts:140:33)
at t.CommandNode._executeCommand (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback-tree/command-node.ts:152:24)
at t.CommandNode.execute (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback-tree/command-node.ts:112:31)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at t.default.result [as _executeCommand] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:562:7)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:438:9)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)
at t.default.next [as _executionLoop] (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)
at t.default._executionLoop (/Applications/Selenium IDE.app/Contents/Resources/app.asar/build/webpack:/side-runtime/src/playback.ts:493:42)

Activity

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

Metadata

Assignees

No one assigned

    Labels

    top priorityIssues where the user helped on the codebase or this blocks the main user groups.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions