I think you are right. Yes, I should have done that way. Let me try
tomorrow as soon as I reach office and let you know.

On Tue, 28 May, 2019, 7:52 PM Titus Fortner, <titusfort...@gmail.com> wrote:

> I'd need to see the underlying html to know for sure, but it looks like
> you want to specify the tag name of the following sibling
> `following_sibling(tag_name: 'div')`
>
>
>
> On Tuesday, May 28, 2019 at 8:45:37 AM UTC-5, rajagopalan madasami wrote:
>>
>> Justin,
>>
>> Can you please help me to write this code in watir?
>>
>> b.span(xpath: 
>> "//label[@title='Subject']/following-sibling::div/lf-select/div/span").click
>>
>>
>> I have tried this
>>
>> b.label(title: 'Subject').following_sibling.element(tag_name: 
>> 'lf-select').div.span.click
>>
>> But it's not working.
>>
>> Can you help me here?
>>
>>
>> On Tuesday, 28 May 2019 18:56:52 UTC+5:30, Justin Ko wrote:
>>>
>>> For custom elements, you will need to use the #element method:
>>>
>>> b.element(tag_name: 'lf-select')
>>>
>>> Justin
>>>
>>>
>>> On Tuesday, May 28, 2019 at 1:15:05 AM UTC-4, rajagopalan madasami wrote:
>>>>
>>>> Hi,
>>>>
>>>> I have a custom tag named `lf-select`
>>>>
>>>> Can't I call in WATIR like
>>>>
>>>> b.lf_select()
>>>>
>>>> Or something like that? Or Is there anyway?
>>>>
>>> --
> --
> Before posting, please read
> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>
> In short: search before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/watir-general/792fb46a-fcaf-44ef-a502-f11fa5d223fc%40googlegroups.com
> <https://groups.google.com/d/msgid/watir-general/792fb46a-fcaf-44ef-a502-f11fa5d223fc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/CAPc%2BR9SCaQyvCyTis3qfQ72U-EkjXXO3sGci3jRSjMXUB0o3mA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to