sorry dropped my phone and sent the message on accident

What you are doing with the page objects are defining your elements in your
own dsl so that along with making the objects reusable you are giving them
names that make sense in example

<div id='some_cool_thing' class="colors shapes sizes">CLICK TO SEE THE
INTERNET HAS THINGS!!!!</div>

in a home_page class you could do something like this
in watir-webdriver:
def cool_things
  @browser.div(:id => 'some_cool_thing')
end

in selenium-webdriver:
def cool_things
  @driver.find_element(:id => 'some_cool_thing')
end

either way in your test this would make more sense
my_site.home_page.cool_things.click
or
my_site.home_page.cool_things.text.should == "CLICK TO SEE THE INTERNET HAS
THINGS!!!!"

On Thu, Mar 22, 2012 at 3:46 PM, Eric Mathiesen <[email protected]>wrote:

> Oh god, you have an iPhone...  Go buy an Android and say no to child
> labor!....
>
> :-)
>
> On Thu, Mar 22, 2012 at 11:45 AM, bis <[email protected]> wrote:
>
>> I don't know if there is a quick reference for actual page objects what
>> you are doing is defining and adding
>>
>> Sent from my iPhone
>>
>> On Mar 22, 2012, at 3:41 PM, [email protected] wrote:
>>
>> Is the page objects quick reference available online somewhere?
>>
>> Anne
>>
>> On , Željko Filipin <[email protected]> wrote:
>> > On Thu, Mar 22, 2012 at 1:40 PM, Max [email protected]> wrote:
>> > > would be awesome if this could be later posted on youtube :)
>> >
>> > We will do our best, also recording in HD, will see how it goes.
>> >
>> >
>> >
>> >
>> > Željko
>> >
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>> >
>> >
>> >
>> > [email protected]
>> >
>> > http://groups.google.com/group/watir-general
>> >
>> > [email protected]
>> >
>> >
>>
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> [email protected]
>> http://groups.google.com/group/watir-general
>> [email protected]
>>
>>  --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> [email protected]
>> http://groups.google.com/group/watir-general
>> [email protected]
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to