Skip to content

Popup interaction issues in CLI/Agent: "Setup One-Click Configurations" step skipped and popup actions executed multiple times #155

Description

@tanmays0608

kane-cli version
0.6.4

Operating System
Windows (x64)

Installation method
npm

What happened?
multiple issues while executing a test involving popup interactions.

The execution skips the "Setup One-Click Configurations" click step immediately after sign-in and proceeds directly to the URL assertion. Additionally, after adding prompts such as "switch to popup screen", the execution showed partial improvement after multiple retries. However, the steps responsible for vendor creation (steps 7–13) were executed three times instead of once, resulting in duplicate vendor records.

The customer also observed that dropdown selection inside popup windows (for example, selecting Insurer and Vendor values) is affected by the same behavior.

The customer application is hosted in a local environment, so the issue cannot be reproduced internally.

Steps to Reproduce

Execute the following test through the CLI/Agent:

Go to website
fill #txtUserName with 'internalAutomation',
fill #txtPassword with '!Automation1',
click the Sign In button,
click the 'Setup One-Click Configurations' element,
assert the URL contains '/DMM/OneclickConfiguration',
click the 'Add One-Click Vendor' element,
switch to popup screen,
click the 'Insurer' element in the popup screen,
select '21' from the 'Insurer' dropdown,
click the 'Vendor' element in the popup screen,
select '6' from the 'Vendor' dropdown,
click the 'Save' element,
click the 'Delete Configuration icon',
click the 'Delete' button,
click the 'Log Out' link,
assert the URL contains '/Login'

Notes:
The issue could not be reproduced internally because the application is hosted in the customer's local environment.
The behavior appears to be related to popup handling and execution flow in the CLI/Agent, leading to skipped steps, repeated execution, and duplicate record creation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentTo identify the issues created by agentsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions