autoinfra/PlaywrightJava

Change request for "LocatorAssertions.setDefaultTimeout"

Closed this issue · 1 comments

N1ro commented

Hello everyone,

This is a change request, not a issue, raising here as I'm not sure how to raise a change request with playwright.
I'd like to request a change for LocatorAssertions.setDefaultTimeout()

Why?
Currently, assertions are performed like below with setTimeout, we'd like to know if its possilbe to add LocatorAssertions.setDefaultTimeout() so we can setup locationAssertions timeout globallly, rather individually.

assertThat(page.locator( LoginPage.ERROR_MESSAGE_CONTAINER )) .hasText( expectedMessage, new LocatorAssertions.HasTextOptions().setTimeout( 30000 ) );

        Please let us know if you need more info.

Thanks
Niro

N1ro commented

raised it by mistakently