Skip to content

executeScript not returning JSON #76

Open
@ukandrewc

Description

@ukandrewc

executeScript rarely returns JSON e.g.
WebView2.executeScript("document.activeElement.getBoundingClientRect()")
Returns null

I'm having to wrap the result in JSON.
WebView2.executeScript("JSON.stringify(document.activeElement.getBoundingClientRect())")
Returns correct JSON but escaped (as expected).
"{\"x\":296,\"y\":322.5,\"width\":427,\"height\":34,\"top\":322.5,\"right\":723,\"bottom\":356.5,\"left\":296}"

AB#28556110

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.trackedWe are tracking this work internally.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions