Hi, your code is not working for me. Here is the Html
On Wednesday, 29 May 2019 20:59:59 UTC+5:30, Justin Ko wrote:
>
> Which is the working one? The code appears to be the same for both the
> working and not working one.
>
> I assume that the working one is the original :xpath locator you were
Which is the working one? The code appears to be the same for both the
working and not working one.
I assume that the working one is the original :xpath locator you were
trying to convert. If that's the case, I would guess you are running into
how Watir returns the first match of each individua
Plese reject the last mail in which one extra line was added, WATIR is
creating the following xpath
".//*[local-name()='label'][@title='Subject']"
"./following-sibling::*[local-name()='div'][1]"
".//*[local-name()='lf-select']"
".//*[local-name()='div']"
".//*[local-name()='span']"
On Tuesday,
And I have printed the xpath WATIR is creating, here it is
".//*[local-name()='i'][contains(concat(' ', @class, ' '), ' fa-spin ')]"
".//*[local-name()='label'][@title='Subject']"
"./following-sibling::*[local-name()='div'][1]"
".//*[local-name()='lf-select']"
".//*[local-name()='div']"
".//*[loca
I have written the following code
b.label(title: 'Subject').following_sibling(tag_name: 'div').element(tag_name:
'lf-select').div.span.click
It throws this error of element not present
But this one
b.label(title: 'Subject').following_sibling(tag_name: 'div').element(tag_name:
'lf-select').d