Skip to content

skygenusa.com || Screenshot failed: UnicodeEncodeError: 'charmap' codec can't encode character #149

Description

@devanshsinghLT

kane-cli version

0.6.4

Operating System

Windows (x64)

Installation method

npm

What happened?

User[joko.supriyanto@skygenusa.com] has reported an issue while using KaneCLI in Agent Mode to automate a locally hosted application.

During execution, the test consistently fails while attempting to click on a navigation element. The failure is not caused by the application interaction itself but occurs when KaneCLI attempts to capture a screenshot and log the execution.

The reported error is:
Screenshot failed: UnicodeEncodeError: 'charmap' codec can't encode character '\u25be' in position 287: character

/summary of the step:
error:
Flow 2: click the 'System Navigation' text in the top right navigation area,
assert the System Navigation dropdown is open,
click the 'Security & System Setup' tab in the dropdown,
click the 'Security Module (ESM)' link,
assert the page title contains 'SSM',
assert the URL contains '/esm',
click the 'Security Roles' link in the top navigation bar,
assert the page heading is 'Security Roles'
▪ Generated task with 4 checkpoints
1 ✓ Clicking the system navigation menu trigger ● 4.6s
⠇ Deciding next action…
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ The home/dashboard page is visible with a “System Navigation” dropdown and “Sign Out” in the top right, while tiles like “Determine Status of │
│ Authorization” and “Edit & Adjudicate Claims” are shown in the main area. The agent appears to have completed the earlier navigation and is now │
✗ Faile · 9 steps · 1m 9s · 18.8019 credits · Screenshot failed: UnicodeEncodeError: 'charmap' codec can't encode character '\u25be' in position 287: character

Image

Below are the URLs of the KaneCLI test case:
ShareLink:
https://test-manager.lambdatest.com/projects/01K7M6JQ4QJQG1KJ5X49YJ2JQG/test-cases/01KY7RCSP52C5
78463DXEJYCAN/dashboard/share/US_VGFAPPNC1B34VLZWKZFWL8LWKWLVP86AA5GVYMMCEFX8GPI5P9XC1JZ2ZVTWF4H
J?type=summary&agentView=true&fqdn=summary-page

TestCase:
https://test-manager.lambdatest.com/projects/01K7M6JQ4QJQG1KJ5X49YJ2JQG/test-cases/01KY7RCSP52C5
78463DXEJYCAN/dashboard?type=summary&agentView=true&fqdn=summary-page

Additional details

We can't reproduce this issue as the user is testing their local website.

The issue is irreproducible at public website on our end.

Error output / logs

Screenshot failed: UnicodeEncodeError: 'charmap' codec can't encode character '\u25be' in position 287: character

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions