I am pulling a list of input elements from a page and would like to determine the "type" of each one.
For instance:
var elements = await page.QuerySelectorAllAsync("input");
if (elements != null)
{
foreach (var element in elements)
{
if (element.GetType().ToString() == "password")
{
await element.TypeAsync("password");
}
}
}
However, GetType is not correct. Is there a way to determine the input type from an element?