Skip to content

Commit 686b8ec

Browse files
authored
fix #597: update profile photo and banner upload selectors (#607)
1 parent e37e01c commit 686b8ec

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

packages/core/src/linkedinProfile.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,15 +751,31 @@ const PROFILE_MEDIA_LABELS = {
751751

752752
export const PROFILE_MEDIA_STRUCTURAL_SELECTORS = {
753753
photo: [
754+
"[aria-label*='profile photo' i]",
755+
"[aria-label*='Profilbillede' i]",
754756
"button.profile-photo-edit__edit-btn",
755757
".profile-photo-edit button",
756758
".pv-top-card__photo-wrapper .profile-photo-edit button",
757-
".pv-top-card__edit-photo button"
759+
".pv-top-card__edit-photo button",
760+
".pv-top-card-profile-picture__container button",
761+
".pv-top-card-profile-picture__container [role='button']",
762+
".pv-top-card-profile-picture__edit-button",
763+
".pv-top-card-profile-picture__image"
758764
],
759765
banner: [
766+
"[aria-label*='background photo' i]",
767+
"[aria-label*='cover image' i]",
768+
"[aria-label*='Baggrundsbillede' i]",
769+
"[aria-label*='forsidebillede' i]",
770+
"[data-control-name='edit_profile_background_image']",
760771
".profile-topcard-background-image-edit__icon button",
761772
".profile-topcard-background-image-edit__button button",
762-
"[id^='cover-photo-dropdown-button-trigger-']"
773+
"[id^='cover-photo-dropdown-button-trigger-']",
774+
".profile-background-image__edit-button",
775+
".profile-background-image__image-container button",
776+
".profile-background-image button",
777+
".profile-background-image [role='button']",
778+
".profile-background-image__image"
763779
]
764780
} as const;
765781

0 commit comments

Comments
 (0)