Well, now we're running into another bug that has to do with how element 
collections are located, which requires fixing the way context is 
established so that we can apply it to both elements and collections.

This should fix it:
https://github.com/watir/watir/pull/771


On Monday, September 3, 2018 at 8:03:00 AM UTC-7, rajagopalan madasami 
wrote:
>
> Titus, something really bad happened, now select list is not waiting for 
> element to exist, it immediately throws the error. Previous version works 
> fine. Something is missed.
>
> On Mon 3 Sep, 2018, 11:49 AM Titus Fortner, <[email protected] 
> <javascript:>> wrote:
>
>> Excellent! I'm glad it won't be a prohibitive change.
>>
>>
>> On Sunday, September 2, 2018 at 10:44:09 PM UTC-7, [email protected] 
>> wrote:
>>>
>>> Hi,
>>>
>>> I am sorry, It works fine. And you are absolutely right. Yes. 
>>>
>>> b.element(visible_text: 'Sessions').click
>>>>
>>>
>>> Takes much time
>>>
>>> but 
>>>
>>> b.link(visible_text: 'Sessions').click
>>>>
>>>
>>> Takes very less time.  
>>>
>>>
>>>
>>> On Sunday, September 2, 2018 at 11:45:04 PM UTC+5:30, 
>>> [email protected] wrote:
>>>>
>>>> Sure, I will be in office tomorrow, so I will taking that element html 
>>>> and posting it here.
>>>>
>>>> I have posted a question in Stackover flow, can you please answer me 
>>>> there?
>>>>
>>>>
>>>> https://stackoverflow.com/questions/52130793/select-method-and-option-method-works-differently
>>>>
>>>> On Friday, August 31, 2018 at 12:28:27 AM UTC+5:30, Titus Fortner wrote:
>>>>>
>>>>> Can I see the html of the element you are trying to locate and the 
>>>>> locator you are trying to use? 
>>>>> On Thu, Aug 30, 2018 at 9:41 AM rajagopalan madasami 
>>>>> <[email protected]> wrote: 
>>>>> > 
>>>>> > Hi, I have checked it, when I use visible_text its not even finding 
>>>>> the element . Element not found error was thrown. 
>>>>> > 
>>>>> > On Thu 30 Aug, 2018, 4:59 AM Titus Fortner, <[email protected]> 
>>>>> wrote: 
>>>>> >> 
>>>>> >> Yes, Watir is only going to iterate over the link elements instead 
>>>>> of all of the elements to find the matching text. If there is a class or 
>>>>> other attribute that would further filter out links, that would help as 
>>>>> well. It will still be a little slower as there will be more wire calls, 
>>>>> but I'm more concerned with having a consistent API than absolute 
>>>>> performance. 
>>>>> >> 
>>>>> >> For example: 
>>>>> >> `browser.link(class: 'foo', data_bar: 'bar', text: "Foo Bar")` 
>>>>> >> 
>>>>> >> Additionally, you can also try watigiri which will iterate over a 
>>>>> cached tree with a low level library, instead of making multiple wire 
>>>>> calls. watigiri is limited by not being able to distinguish between 
>>>>> "visible" and "non-visible" text. 
>>>>> >> 
>>>>> >> 
>>>>> >> 
>>>>> >> On Wednesday, August 29, 2018 at 4:19:47 PM UTC-7, rajagopalan 
>>>>> madasami wrote: 
>>>>> >>> 
>>>>> >>> Ah, okay , that makes difference? Okay let me check it today how 
>>>>> it works. 
>>>>> >>> 
>>>>> >>> On Thu 30 Aug, 2018, 4:12 AM Titus Fortner, <[email protected]> 
>>>>> wrote: 
>>>>> >>>> 
>>>>> >>>> Are you using element or link method? 
>>>>> >>>> 
>>>>> >>>> -- 
>>>>> >>>> -- 
>>>>> >>>> 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. 
>>>>> >>>> 
>>>>> >>>> [email protected] 
>>>>> >>>> http://groups.google.com/group/watir-general 
>>>>> >>>> [email protected] 
>>>>> >>>> --- 
>>>>> >>>> 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 [email protected]. 
>>>>> >>>> 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. 
>>>>> >> 
>>>>> >> [email protected] 
>>>>> >> http://groups.google.com/group/watir-general 
>>>>> >> [email protected] 
>>>>> >> --- 
>>>>> >> 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 [email protected]. 
>>>>> >> 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. 
>>>>> > 
>>>>> > [email protected] 
>>>>> > http://groups.google.com/group/watir-general 
>>>>> > [email protected] 
>>>>> > --- 
>>>>> > 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 [email protected]. 
>>>>> > 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.
>>  
>> [email protected] <javascript:>
>> http://groups.google.com/group/watir-general
>> [email protected] <javascript:>
>> --- 
>> 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 [email protected] <javascript:>.
>> 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.

[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to