Skip to content

Violation error when running CoreWebView2.ExecuteScriptAsync(strJavascript); #1481

@cyberfizz

Description

@cyberfizz

We run a script to automate entering of text and logins when the page is loaded. We have have an event for when NavigationCompleted which enters the javascript, but in the developer console it looks to be blocked:

image

This works fine using the same method in cefsharp for instance, using the same methods, but seems to fail with WebView2.

If i try the commands direct in to the console they work fine, only when done via the ExecuteScript function.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions