0

HTML:

<div class="team" data-team="test-invite14">
    <div class="team-body"><span class="avatar xlarge no-image" style="background-color: rgb(223, 103, 255);">T</span>
    </div>
    <div class="team-foot">Test.invite14</div>
</div>

I have tried multiple times but didn't got positive response Can anyone help me?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Prakash
  • 1
  • 2

2 Answers2

0

//div[@class='team']

//div[@data-team='test-invite14']

Use any one of this and try

RRK
  • 17
  • 8
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 29 '22 at 01:54
0

The correct xpath are as follows:

  • XPATH for T:

    //div[@class='team']/div[@class='team-body']/span[text()='T']
    
  • XPATH for Test.invite14:

    //div[@class='team']//div[@class='team-foot' and text()='Test.invite14']
    
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352