Hi Krishantha/All

As we discussed (offline) I used the plugin you suggested and used
suggested 'xpath' selectors.
Now it works perfectly.

Thanks and Cheers



On Wed, Sep 10, 2014 at 11:18 AM, Krishantha Samaraweera <
[email protected]> wrote:

> Hi Kasun,
>
> You can use driver.FindElement(By.LinkText("dummy_link")).Click() or xpath
> locator to click the "Sign out" link.
>
> Following WebDriver element locator plugin would be helpful to find
> selenium locator easily.
>
> -
> https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/
>
> Thanks,
>
> Krishantha.
>
> On Tue, Sep 9, 2014 at 9:18 PM, Roshan Wijesena <[email protected]> wrote:
>
>> Hi Kasun
>>
>> This might help you.
>>
>>
>> http://stackoverflow.com/questions/17329436/selenium-xpath-selector-based-on-the-element-text
>>
>> Regards
>> Roshan
>>
>> On Tue, Sep 9, 2014 at 8:58 PM, Kasun Dissanayake <[email protected]>
>> wrote:
>>
>>> Hi all
>>>
>>> I was working with $subject and got stuck in selecting the Sign out tag
>>> in following page source (Bolded one)
>>>
>>> <div class="container">
>>>     <a class="brand" href="/store/"></a>    <!--
>>>       <ul class="nav menu store-menu">                                      
>>>                 </ul>-->
>>>        <ul class="nav menu pull-right">                                     
>>>                                                 <li class="nav-separator">  
>>>                            <a 
>>> href="/store/extensions/assets/webapp/subscriptions"><i                     
>>>   class="icon-tags store-topnav-bookmark"></i> My Subscriptions</a>         
>>>       </li>           <li>                            <a 
>>> class="dropdown-toggle" data-toggle="dropdown" href="#"><i                  
>>>          class="icon-user"></i> admin <b class="caret"></b></a>             
>>>              <ul class="dropdown-menu dropdown-account" role="menu" 
>>> aria-labelledby="dLabel">                                <li>               
>>>                      *<a href="/store/logout"><i class="icon-signout"></i> 
>>> Sign out </a>*                            </li>           </ul>           
>>> </li>                                                           </ul>
>>> </div>
>>>
>>>
>>> any idea ?
>>>
>>>
>>> --
>>> Kasun Dissanayake
>>> Software Engineer
>>> WSO2 Inc.
>>> Lean | Enterprise | Middleware
>>> Tel - +94 77 086 2860
>>> Skype - kasun.dissanayake4
>>> LinkedIn - lk.linkedin.com/in/kasundis/
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Roshan Wijesena.
>> Senior Software Engineer-WSO2 Inc.
>> Mobile: *+94752126789*
>> Email: [email protected]
>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>> lean.enterprise.middleware.
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to