My first piece of advice would be not to use x-path, but any of the other
items to identify ( ID, Name, URL, Etc...)

Cheers,
Eric

On Mon, Aug 16, 2010 at 10:59 AM, Charley Baker <charley.ba...@gmail.com>wrote:

> Not sure on that one, check the unittests for watir. I've created and built
> out a test base of over 10k tests, not using xpath. Others are more
> qualified to answer.
>
>
> Charley Baker
> Lead Developer, Watir, http://watir.com
>
>
> On Mon, Aug 16, 2010 at 11:31 AM, goutham mandadi <
> goutham.mand...@gmail.com> wrote:
>
>> Hi Charley,
>>
>> Thanks alot it is working fine now and one more issue is while using xpath
>> i am getting the following error
>>
>> one.rb:6: undefined method `element_by_xpath' for #<Watir::IE:0x2bbabf0>
>> (NoMethodError)
>> ie.element_by_xpath("//ar...@href='www.snapfish.com/snapfish/youraccount'<http://www.snapfish.com/snapfish/youraccount%27>]").click
>> this is the element i am trying to find using xpath
>>
>> Thanks,
>> Goutham
>>
>> On Mon, HiAug 16, 2010 at 10:07 PM, Charley Baker <
>> charley.ba...@gmail.com> wrote:
>>
>>> Name the file with no spaces, something like my_ruby_program.rb.
>>> Filenames are conventionally snake cased - lower case with underscores.
>>>
>>> Charley Baker
>>> Lead Developer, Watir, http://watir.com
>>>
>>>
>>>   On Mon, Aug 16, 2010 at 10:04 AM, goutham mandadi <
>>> goutham.mand...@gmail.com> wrote:
>>>
>>>>   Hai Adam,
>>>>
>>>> Thanks for your reply i have installed scite and run the script it is
>>>> giving the following message
>>>>
>>>> >ruby New Ruby Program.rb
>>>> ruby: No such file or directory -- New (LoadError)
>>>> >Exit code: 1
>>>> the script is in my desktop should we place it in any specific directory
>>>> to execute
>>>>
>>>> Thanks,
>>>> Goutham
>>>>
>>>>    On Mon, Aug 16, 2010 at 9:24 PM, Adam Reed <reed.a...@gmail.com>wrote:
>>>>
>>>>> Hi Goutham,
>>>>>
>>>>> It sounds like you're double-clicking the script in order to run it
>>>>> which closes the DOS window upon completion.
>>>>>
>>>>> If installed, you can execute the script using the SciTE editor.
>>>>> Right click on the script, select Edit.  The output pane can be
>>>>> enabled using F8 if it is not shown.
>>>>>
>>>>> Alternatively, you can open a DOS prompt and browse to the location of
>>>>> the script you would like to run.  Execute the script from the command
>>>>> line, and the DOS window will not close.
>>>>>
>>>>> Good luck,
>>>>> Adam
>>>>>
>>>>> On Aug 16, 10:46 am, goutham <goutham.mand...@gmail.com> wrote:
>>>>> > Hi all,
>>>>> >
>>>>> > I am new to watir ,I am trying to find element using xpath but i
>>>>> could
>>>>> > not and one more issue is that i couldnot see the error message what
>>>>> > it is returning as ruby interpreter is getting closed how to see the
>>>>> > error messages returned during execution
>>>>> >
>>>>> > Thankyou,
>>>>> > Goutham
>>>>>
>>>>> --
>>>>> Before posting, please read http://watir.com/support. In short: search
>>>>> before you ask, be nice.
>>>>>
>>>>> You received this message because you are subscribed to
>>>>> http://groups.google.com/group/watir-general
>>>>> To post: watir-general@googlegroups.com
>>>>> To unsubscribe: 
>>>>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>>>>
>>>>
>>>> --
>>>> Before posting, please read http://watir.com/support. In short: search
>>>> before you ask, be nice.
>>>>
>>>> You received this message because you are subscribed to
>>>> http://groups.google.com/group/watir-general
>>>> To post: watir-general@googlegroups.com
>>>> To unsubscribe: 
>>>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>>>
>>>
>>> --
>>>  Before posting, please read http://watir.com/support. In short: search
>>> before you ask, be nice.
>>>
>>> You received this message because you are subscribed to
>>> http://groups.google.com/group/watir-general
>>> To post: watir-general@googlegroups.com
>>> To unsubscribe: 
>>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>>
>>
>>  --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> You received this message because you are subscribed to
>> http://groups.google.com/group/watir-general
>> To post: watir-general@googlegroups.com
>> To unsubscribe: 
>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to