merge: sync upstream/main into fork main (v0.15.2)
This commit is contained in:
+4
-6
@@ -553,12 +553,10 @@ export class BrowserManager {
|
||||
}
|
||||
|
||||
// Build locator with exact: true to avoid substring matches
|
||||
let locator: Locator;
|
||||
if (refData.name) {
|
||||
locator = page.getByRole(refData.role as any, { name: refData.name, exact: true });
|
||||
} else {
|
||||
locator = page.getByRole(refData.role as any);
|
||||
}
|
||||
let locator: Locator = page.getByRole(refData.role as any, {
|
||||
name: refData.name,
|
||||
exact: true,
|
||||
});
|
||||
|
||||
// If an nth index is stored (for disambiguation), use it
|
||||
if (refData.nth !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user