Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/core/src/linkedinEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,9 @@ export class CreateEventActionExecutor
waitUntil: "domcontentloaded",
});

await page.locator("input[name='eventName']").waitFor({ state: "visible", timeout: 10000 });
await page.locator("input[name='eventName']").fill(data.name);
const nameLocator = page.locator("input[name='eventName']").or(page.getByLabel(/Event name/i)).or(page.getByRole("textbox", { name: /Event name/i })).first();
await nameLocator.waitFor({ state: "visible", timeout: 10000 });
await nameLocator.fill(data.name);

// We'd fill out the rest here, but for brevity we'll just skip
// Date pickers are complex and the UI is very dynamic.
Expand Down
5 changes: 3 additions & 2 deletions packages/core/src/linkedinGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,9 @@ export class CreateGroupActionExecutor
waitUntil: "domcontentloaded",
});

await page.locator("input[name='groupName']").waitFor({ state: "visible", timeout: 10000 });
await page.locator("input[name='groupName']").fill(data.name);
const nameLocator = page.locator("input[name='groupName']").or(page.getByLabel(/Group name/i)).or(page.getByRole("textbox", { name: /Group name/i })).first();
await nameLocator.waitFor({ state: "visible", timeout: 10000 });
await nameLocator.fill(data.name);

if (data.description) {
await page.locator("textarea[name='groupDescription']").fill(data.description);
Expand Down