@saanvi.savlani make sure you’re using the locator.get_by_test_id(“your-id”) method from the Locator API (not page.get_by_test_id unless you’re on the latest version). This worked for me:
page.locator("[data-testid='submit-btn']")
@saanvi.savlani make sure you’re using the locator.get_by_test_id(“your-id”) method from the Locator API (not page.get_by_test_id unless you’re on the latest version). This worked for me:
page.locator("[data-testid='submit-btn']")