spa3212 1 Posted January 19, 2020 Report Share Posted January 19, 2020 <div role="button" tabindex="-1" id="rx-vlv-1077" aria-label="holidays, 1 participant, " style="position: relative; display: flex; flex-direction: column; flex-grow: 0; flex-shrink: 0; overflow: visible; align-items: stretch; cursor: pointer; height: 56px;"><div role="none" style="position: relative; display: flex; flex-direction: row; flex-grow: 1; flex-shrink: 1; overflow: hidden; align-items: center; border-radius: 0px; cursor: pointer; padding: 4px 10px; background-color: rgba(0, 0, 0, 0); height: 55px;"><div role="none" style="position: relative; display: flex; flex-direction: row; flex-grow: 1; flex-shrink: 1; overflow: hidden; align-items: center; background-color: rgba(0, 0, 0, 0);"><div role="none" aria-hidden="true" style="position: relative; display: flex; flex-direction: column; flex-grow: 0; flex-shrink: 0; overflow: hidden; align-items: stretch; width: 40px; height: 40px; border-radius: 20px;"><div role="none" style="position: absolute; display: flex; flex-direction: column; flex-grow: 0; flex-shrink: 0; overflow: hidden; align-items: center; left: 0px; right: 0px; top: 0px; bottom: 0px; justify-content: center;"><div role="none" style="position: relative; display: flex; flex-direction: column; flex-grow: 0; flex-shrink: 0; overflow: hidden; align-items: center; background-color: rgb(229, 228, 232); justify-content: center; width: 40px; height: 40px; border-radius: 20px;"><div aria-hidden="true" data-text-as-pseudo-element="ho" dir="auto" style="position: relative; display: inline; flex-grow: 0; flex-shrink: 0; overflow: hidden; white-space: pre; text-overflow: ellipsis; font-size: 14px; color: rgb(0, 120, 212); font-family: "SF Bold", "Segoe System UI Bold", "Segoe UI Bold", sans-serif; font-weight: 400; background-color: rgba(0, 0, 0, 0); cursor: inherit;"></div></div></div></div><div role="none" style="position: relative; display: flex; flex-direction: column; flex-grow: 1; flex-shrink: 1; overflow: hidden; align-items: stretch; margin-left: 10px; margin-right: 10px;"><div role="none" style="position: relative; display: flex; flex-direction: column; flex-grow: 0; flex-shrink: 0; overflow: hidden; align-items: stretch;"><div dir="auto" style="position: relative; display: inline; flex-grow: 0; flex-shrink: 0; overflow: hidden; white-space: pre; text-overflow: ellipsis; font-size: 15px; font-family: "SF Regular", "Segoe System UI Regular", "Segoe UI Regular", sans-serif; font-weight: 400; color: rgb(37, 36, 35); cursor: inherit;">holidays</div></div><div role="none" style="position: relative; display: flex; flex-direction: row; flex-grow: 1; flex-shrink: 1; overflow: hidden; align-items: center;"><div dir="auto" style="position: relative; display: inline; flex-grow: 0; flex-shrink: 1; overflow: hidden; white-space: pre; text-overflow: ellipsis; font-size: 14px; font-family: "SF Regular", "Segoe System UI Regular", "Segoe UI Regular", sans-serif; font-weight: 400; color: rgb(138, 141, 145); cursor: inherit;">1 participant</div></div></div></div></div></div> Here I want to click on the button with text "holidays, with attribute aria-labelproblem is that when I use only //div[@aria-label=holidays] it says multiple instance found. But if I go with //div[@aria-label=holidays, 1 participant, ] it works but issue is that this number "1" always changes..can anyone help me getting this stuff clicked. Quote Link to post Share on other sites
PRO 69 Posted January 19, 2020 Report Share Posted January 19, 2020 Try this: (//div[@aria-label=holidays] [1]) You can change the number [1]. If you put in the number [2] it should select the second occurrence and so on. Quote Link to post Share on other sites
spa3212 1 Posted January 20, 2020 Author Report Share Posted January 20, 2020 unfortunately this also did't work. Quote Link to post Share on other sites
PRO 69 Posted January 20, 2020 Report Share Posted January 20, 2020 You can send me the website source code or show me the specific URL and what you try to achieve. I am sure we will find a proper selector (xpath expression) for this. Quote Link to post Share on other sites
spa3212 1 Posted January 20, 2020 Author Report Share Posted January 20, 2020 (edited) oh sure, its web.skype.com I want to select(click) a group based on its name.. https://prnt.sc/qqdihr Edited January 20, 2020 by spa3212 Quote Link to post Share on other sites
PRO 69 Posted January 20, 2020 Report Share Posted January 20, 2020 Alright. Please send me the entire HTML source code of that page being opened in your Browser via PM. Then I will inspect it and tell you. 1 Quote Link to post Share on other sites
spa3212 1 Posted April 24, 2020 Author Report Share Posted April 24, 2020 Hi, @pro actually I could not pm you, here is the screen shot of what I want. it can be simple for you.. actually group name can be anything.https://prnt.sc/s58d2j Thanks eagerly waiting for your reply. Quote Link to post Share on other sites
luis carlos 94 Posted April 26, 2020 Report Share Posted April 26, 2020 Post the source code, otherwise is sooooo difficult helping you out. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.