Re: [wtr-general] Clicking on link on list

2013-05-02 Thread ikeonoh
It appears as a link, but for some reason, i can't directly click on the 
link. The link is with other links as a list , which opens the 
associated page on the same page as a container. I am assuming i cant see 
the source code for the link itself because im accessing the source code 
via chrome. Not sure; i'm just assuming

On Thursday, May 2, 2013 10:39:56 AM UTC-4, Oscar.Rieken wrote:

> you want to click on the link that has text of Pricing
> Why not just use that information to locate the link
>
>
> On Thu, May 2, 2013 at 10:35 AM, ikeonoh  >wrote:
>
>> I don't think i understand what you mean. please explain. Thanks!
>>
>> On Thursday, May 2, 2013 10:20:44 AM UTC-4, Oscar.Rieken wrote:
>>
>>> Prici**
>>> ng
>>>
>>> if there is only one why not link with text of Pricing?
>>>
>>>
>>>
>>> On Thu, May 2, 2013 at 10:18 AM, ikeonoh  wrote:
>>>
 Just realized that the links open up in a container on the same page. I 
 pretty much have problems accesing anything in any containers from the 
 links. I have tried:

 =>page = browser.ul(:class, "navigation").li(:index => 5)
 =>page.click

 =>page = browser.ul(:class, "navigation").lis[5]
 =>page.click

 On Thursday, May 2, 2013 2:59:37 AM UTC-4, Željko Filipin wrote:

> On Wed, May 1, 2013 at 9:12 PM, ikeonoh  wrote:
>
>> I am trying to click on the link "Pricing"
>
>
> What have you tried so far?
>
> Željko
> --
> https://leanpub.com/watirbook 
>
  -- 
 -- 
 Before posting, please read http://watir.com/support. In short: search 
 before you ask, be nice.
  
 watir-...@googlegroups.com
 http://groups.google.com/**group/watir-general
 watir-genera...@**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-genera...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .
  
  

>>>
>>>  -- 
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> watir-...@googlegroups.com 
>> http://groups.google.com/group/watir-general
>> watir-genera...@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-genera...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Clicking on link on list

2013-05-02 Thread Oscar Rieken
you want to click on the link that has text of Pricing
Why not just use that information to locate the link


On Thu, May 2, 2013 at 10:35 AM, ikeonoh  wrote:

> I don't think i understand what you mean. please explain. Thanks!
>
> On Thursday, May 2, 2013 10:20:44 AM UTC-4, Oscar.Rieken wrote:
>
>> Prici**ng
>>
>> if there is only one why not link with text of Pricing?
>>
>>
>>
>> On Thu, May 2, 2013 at 10:18 AM, ikeonoh  wrote:
>>
>>> Just realized that the links open up in a container on the same page. I
>>> pretty much have problems accesing anything in any containers from the
>>> links. I have tried:
>>>
>>> =>page = browser.ul(:class, "navigation").li(:index => 5)
>>> =>page.click
>>>
>>> =>page = browser.ul(:class, "navigation").lis[5]
>>> =>page.click
>>>
>>> On Thursday, May 2, 2013 2:59:37 AM UTC-4, Željko Filipin wrote:
>>>
 On Wed, May 1, 2013 at 9:12 PM, ikeonoh  wrote:

> I am trying to click on the link "Pricing"


 What have you tried so far?

 Željko
 --
 https://leanpub.com/watirbook

>>>  --
>>> --
>>> Before posting, please read http://watir.com/support. In short: search
>>> before you ask, be nice.
>>>
>>> watir-...@googlegroups.com
>>> http://groups.google.com/**group/watir-general
>>> watir-genera...@**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-genera...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> --
> Before posting, please read http://watir.com/support. 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Clicking on link on list

2013-05-02 Thread ikeonoh
I don't think i understand what you mean. please explain. Thanks!
On Thursday, May 2, 2013 10:20:44 AM UTC-4, Oscar.Rieken wrote:
>
> Pricing
>
> if there is only one why not link with text of Pricing?
>
>
>
> On Thu, May 2, 2013 at 10:18 AM, ikeonoh  >wrote:
>
>> Just realized that the links open up in a container on the same page. I 
>> pretty much have problems accesing anything in any containers from the 
>> links. I have tried:
>>
>> =>page = browser.ul(:class, "navigation").li(:index => 5)
>> =>page.click
>>
>> =>page = browser.ul(:class, "navigation").lis[5]
>> =>page.click
>>
>> On Thursday, May 2, 2013 2:59:37 AM UTC-4, Željko Filipin wrote:
>>
>>> On Wed, May 1, 2013 at 9:12 PM, ikeonoh  wrote:
>>>
 I am trying to click on the link "Pricing"
>>>
>>>
>>> What have you tried so far?
>>>
>>> Željko
>>> --
>>> https://leanpub.com/watirbook 
>>>
>>  -- 
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> watir-...@googlegroups.com 
>> http://groups.google.com/group/watir-general
>> watir-genera...@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-genera...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Clicking on link on list

2013-05-02 Thread Oscar Rieken
Pricing

if there is only one why not link with text of Pricing?



On Thu, May 2, 2013 at 10:18 AM, ikeonoh  wrote:

> Just realized that the links open up in a container on the same page. I
> pretty much have problems accesing anything in any containers from the
> links. I have tried:
>
> =>page = browser.ul(:class, "navigation").li(:index => 5)
> =>page.click
>
> =>page = browser.ul(:class, "navigation").lis[5]
> =>page.click
>
> On Thursday, May 2, 2013 2:59:37 AM UTC-4, Željko Filipin wrote:
>
>> On Wed, May 1, 2013 at 9:12 PM, ikeonoh  wrote:
>>
>>> I am trying to click on the link "Pricing"
>>
>>
>> What have you tried so far?
>>
>> Željko
>> --
>> https://leanpub.com/watirbook
>>
>  --
> --
> Before posting, please read http://watir.com/support. 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Clicking on link on list

2013-05-02 Thread ikeonoh
Just realized that the links open up in a container on the same page. I 
pretty much have problems accesing anything in any containers from the 
links. I have tried:

=>page = browser.ul(:class, "navigation").li(:index => 5)
=>page.click

=>page = browser.ul(:class, "navigation").lis[5]
=>page.click

On Thursday, May 2, 2013 2:59:37 AM UTC-4, Željko Filipin wrote:

> On Wed, May 1, 2013 at 9:12 PM, ikeonoh >wrote:
>
>> I am trying to click on the link "Pricing"
>
>
> What have you tried so far?
>
> Željko
> --
> https://leanpub.com/watirbook 
>

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Problems selecting an item in a list

2013-05-02 Thread Željko Filipin
On Wed, May 1, 2013 at 3:52 PM, Marc Westwood wrote:

>  Text = "DEF - 100 DEF"
>

Try this:

browser.a(:text => "DEF - 100 DEF").click

Željko

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Problems selecting an item in a list

2013-05-02 Thread Marc Westwood
I have tried.
 
.div(:class, "selectable_list").li(:id, "_item_2").click
.div(:class, "selectable_list").select 'DEF - 100 DEF'
.select_list(:id, "selectable_list").select 'DEF - 100 DEF'
 
 
I would like to click on using the text.
 

On Thursday, May 2, 2013 7:57:55 AM UTC+1, Željko Filipin wrote:

> On Wed, May 1, 2013 at 3:52 PM, Marc Westwood 
> 
> > wrote:
>
>> I am having problems selecting items from a drop down list, I can get the 
>> drop down list to open but am unable to select an item within the list.
>
>
> You are not dealing with select list (select tag), but with unordered list 
> (ul tag). What do you want to click? What have you tried so far?
>
> Željko
> --
> https://leanpub.com/watirbook 
>

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Clicking on link on list

2013-05-02 Thread Željko Filipin
On Wed, May 1, 2013 at 9:12 PM, ikeonoh  wrote:

> I am trying to click on the link "Pricing"


What have you tried so far?

Željko
--
https://leanpub.com/watirbook

-- 
-- 
Before posting, please read http://watir.com/support. 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.
For more options, visit https://groups.google.com/groups/opt_out.