Hi
I have this xpath for a mouse click action
(//*[@id=‘yuievtautoid-0’]/tbody[2]/tr/td[4]/div/h3/span[2]/a[contains(text(),‘OPF’) or contains(text(),’(OPF’)])[${j}]
However it ignores the file if a file is named as (OPF 258) or 1234589 (OPF No 258) or Lenovo Adapter Soma (OPF No 529) and instead detects only file names starting with OPF, for example a file named OPF 258
Interestingly, there are also these points to be considered :
-
The XPath successfully detects all the file names containing ‘OPF’ disregarding the position of OPF or whether it is surrounded by a parenthesis or not, in the developer panel of chrome.
-
I have extracted all the file names to a list variable using the same path and it contains all the files containing ‘OPF’ string.
So what could be the issue that causes mouse click action to ignore the file containing ‘(OPF’ or files named like this eg: 1234589 (OPF No 258) ?
Any help or advice would be appreciated, thank you.