Estou convertendo um antigo conjunto de testes Selenium/C# para Playwright/C# e está indo muito bem, exceto por um pequeno problema, que é...
No pacote Selenium, este código retorna corretamente o valor de uma caixa de texto
var tValue = Driver.FindElement(locator).GetDomProperty("value") ?? "";
No entanto, este código no novo conjunto Playwright ao executar o mesmo teste não retorna nada
var tValue = await locator.GetAttributeAsync("value") ?? "";
Isso funciona bem para esses atributos, apenas o valor do atributo está falhando, embora funcione na versão Selenium.
tValue = await locator.GetAttributeAsync("type") ?? "";
tValue = await locator.GetAttributeAsync("class") ?? "";
tValue = await locator.GetAttributeAsync("id") ?? "";
Alguma ideia, por favor?