0

How to locate an element using whole html content such as <a href="javascript:view_download_report(document.MForm, 'mm_tt_uu_999','~','D');">Download</a>

Please help.

Sopan Maiti
  • 189
  • 1
  • 11

2 Answers2

0

use the below as cssSelector:

a[href*='view_download_report(document.MForm']

it will give u this element.

noor
  • 2,954
  • 2
  • 16
  • 29
0

you can also use xpath:

.//a[@href='javascript:view_download_report(document.MForm, 'mm_tt_uu_999','~','D')']

Eknath
  • 624
  • 4
  • 11