Jump to content
UBot Underground

Please Help Me In Getting Xpath For Exbrowser


Recommended Posts

<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-label

problem 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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...