We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic method GetPropertyValueAsync<T> returns type string, even though int was specified
GetPropertyValueAsync<T>
string
int
// Arrange await using var devtoolsContext = await coreWebView2.CreateDevToolsContextAsync(); var div = await devToolsContext.QuerySelectorAsync<HtmlDivElement>("#myDiv"); var style = await div.GetStyleAsync(); // Act var zIndex = await style.GetPropertyValueAsync<int>("z-index"); // Assert Assert.Equal(typeof(int), zIndex.GetType());
Get value of type int
Correct value is returned, but of type string
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Generic method
GetPropertyValueAsync<T>
returns typestring
, even thoughint
was specifiedExample reproducing the issue
Expected behavior:
Get value of type
int
Actual behavior:
Correct value is returned, but of type
string
Versions
The text was updated successfully, but these errors were encountered: