[wtr-general] Watir and Quibids

2012-12-04 Thread TommyW
I've tried for a couple hours trying to find the right combination of:

browser.button(:id, 929940484).click

to click the button on the Quibids.com item-specific page but have had zero 
luck.  It keeps giving Unable to Locate Element error.  I have also tried 
:value of Bid Now.


-- 
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


[wtr-general] Watir and Quibids.com

2012-12-04 Thread TommyW
I've tried for a couple hours trying to find the right combination of:

browser.button(:id, 929940484).click

to click the button on the Quibids.com item-specific page but have had zero 
luck.  It keeps giving Unable to Locate Element error.  I have also tried 
:value of Bid Now and a countless other combinations. 

Any help would be appreciated.

-- 
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


[wtr-general] Can't .click an a in watir-webdriver

2012-12-04 Thread Nigel Smith
First off: I'm using twitter bootstrap to create a JS modal. When the modal 
pops up, I can close it by (mouse) clicking on the following element:

a class=btn href=javascript:void(0); data-dismiss=modalClose/a

The problem is, I can't do a .click on that element using watir-webdriver - 
it just blocks indefinitely. I can fire an onclick event, but that causes 
other issues. 

Any ideas why .click doesn't work? Any pointers on how to investigate whats 
going on?

-- 
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


[wtr-general] Installing watir-classic on OSX 10.8.2 gives compile errors

2012-12-04 Thread Nigel Smith
I thought I'd have a run at using watir-classic as well, but get some 
compile errors. It looks like its trying to build the win32-api native 
extensions, on OSX:

Fetching: ffi-1.2.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: win32-process-0.7.0.gem (100%)
Fetching: win32-api-1.4.8.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing watir-classic:
ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
checking for strncpy_s()... no
creating Makefile

make
compiling win32/api.c
win32/api.c:2:21: error: windows.h: No such file or directory
win32/api.c:33: error: expected specifier-qualifier-list before ‘HANDLE’
etc.

It looks like there might be a bug in the build or dependency spec - what 
do you think?

-- 
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


Re: [wtr-general] Watir and Quibids.com

2012-12-04 Thread Eric Mathiesen
Hi Tommy,

 I need you to be a bit more specific in order to help you,  What Bid now
are you trying to click.  On the main entry page there are at least 5 Bid
Now buttons, are you trying to click on the first element or what?  IE
Developer tools lists the first Bid Now as div class=271302023
id=271302023 bid=Bid Now try using that identifier.


On Sat, Dec 1, 2012 at 12:30 PM, TommyW tommy6206...@yahoo.com wrote:

 I've tried for a couple hours trying to find the right combination of:

 browser.button(:id, 929940484).click

 to click the button on the Quibids.com item-specific page but have had
 zero luck.  It keeps giving Unable to Locate Element error.  I have also
 tried :value of Bid Now and a countless other combinations.

 Any help would be appreciated.

 --
 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


-- 
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


Re: [wtr-general] Watir and Quibids

2012-12-04 Thread Željko Filipin
Please provide relevant HTML or a link to the relevant page.

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


On Sat, Dec 1, 2012 at 10:27 PM, TommyW tommy6206...@yahoo.com wrote:

 I've tried for a couple hours trying to find the right combination of:

 browser.button(:id, 929940484).click

 to click the button on the Quibids.com item-specific page but have had
 zero luck.  It keeps giving Unable to Locate Element error.  I have also
 tried :value of Bid Now.


  --
 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


-- 
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


Re: [wtr-general] Installing watir-classic on OSX 10.8.2 gives compile errors

2012-12-04 Thread Željko Filipin
On Tue, Dec 4, 2012 at 9:59 AM, Nigel Smith nachosm...@gmail.com wrote:
 I thought I'd have a run at using watir-classic as well, but get some
compile errors. It looks like its trying to build the win32-api native
extensions, on OSX:

Why are you trying to install watir-classic on OSX? Watir-classic drives IE
on Windows.

Ž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


Re: [wtr-general] Watir and Quibids.com

2012-12-04 Thread Željko Filipin
On Sat, Dec 1, 2012 at 10:30 PM, TommyW tommy6206...@yahoo.com wrote:
 browser.button(:id, 929940484).click

Looks like relevant HTML is:

a href=# class=buttons bid medium orangeBid Now/a

You should be able to click it with:

browser.a(:text = Bid Now).click

By the way, that will click the first link with text Bid Now.

If you want to click a specific link, find an parent element with an unique
attribute. For example:

div id=864656507 class=864656507 bid=Bid Now
...
a href=# class=buttons bid medium orangeBid Now/a
...

You could click exactly this Bid Now link with:

browser.div(:id = 864656507).a(:text = Bid Now).click

Ž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


Re: [wtr-general] Installing watir-classic on OSX 10.8.2 gives compile errors

2012-12-04 Thread Nigel Smith
LOL - thanks for setting me straight - I had no idea. 

To answer your question: to see if I can get around the issue I'm having 
with watir-webdriver atm. I can't get click() to work on certain elements. 
I've tried using fire_event as a workaround, which has other side-effects.

This was the subject of other thread I had posted tonight. It contains a 
little more detail.


 Tuesday, December 4, 2012 8:10:59 PM UTC+10, Željko Filipin wrote:

 On Tue, Dec 4, 2012 at 9:59 AM, Nigel Smith nacho...@gmail.comjavascript: 
 wrote:
  I thought I'd have a run at using watir-classic as well, but get some 
 compile errors. It looks like its trying to build the win32-api native 
 extensions, on OSX:

 Why are you trying to install watir-classic on OSX? Watir-classic drives 
 IE on Windows.

 Ž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


Re: [wtr-general] Can't .click an a in watir-webdriver

2012-12-04 Thread Željko Filipin
On Tue, Dec 4, 2012 at 9:37 AM, Nigel Smith nachosm...@gmail.com wrote:

 Any ideas why .click doesn't work?


Please provide link to the page, link to a similar page or relevant HTML.

Ž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


Re: [wtr-general] Installing watir-classic on OSX 10.8.2 gives compile errors

2012-12-04 Thread Željko Filipin
On Tue, Dec 4, 2012 at 1:07 PM, Nigel Smith nachosm...@gmail.com wrote:

 This was the subject of other thread I had posted tonight. It contains a
 little more detail.


I have replied there.

Ž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


Re: [wtr-general] Can't .click an a in watir-webdriver

2012-12-04 Thread Nigel Smith
Looks like tonight its 2/2 to me for causing the issue ... 

I had a closer look at the code, and got a suspicion that maybe I was not 
clicking the right object. I went to the twitter bootstrap examples page 
and ran a similar test, and it worked fine. So, I did a more explicit 
selection for the element I was after, and surprise surprise found that the 
click() was working fine.

We've got a few of those modals declared in the same page, and I guess I 
was not selecting the right one to call click() on...

Thanks for getting back so quickly Željko. Cheers.

-Nacho

On Tuesday, December 4, 2012 10:09:19 PM UTC+10, Željko Filipin wrote:

 On Tue, Dec 4, 2012 at 9:37 AM, Nigel Smith nacho...@gmail.comjavascript:
  wrote:

 Any ideas why .click doesn't work?


 Please provide link to the page, link to a similar page or relevant HTML. 


-- 
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


Re: [wtr-general] Can't .click an a in watir-webdriver

2012-12-04 Thread Nigel Smith
BTW, I really like the book! 

Highly recommended!

-- 
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


[wtr-general] Re: Watir and Quibids.com

2012-12-04 Thread Super Kevy
And you are incompliance with the agreements of Quibids or are working for 
them?
 
 Account Termination 

QuiBids reserves the right to temporarily or permanently terminate Your 
account at QuiBids sole discretion if it determines or suspects You have 
violated these Terms  Conditions, any laws, or the rights of our other 
users or other third parties. Examples of unauthorized usage include, but 
are not limited to, *the use of unauthorized third-party bidding or bid 
tracking software, the creation of multiple accounts by the same individual 
or other fraudulent account activity or behavior*. You agree that if 
QuiBids, in good faith and in its sole discretion, determines that You have 
breached these Terms  Conditions, QuiBids may withhold, cancel, or 
otherwise retain any and all of Your pending deliveries and/or refunds for 
bids.
 

On Saturday, December 1, 2012 3:30:25 PM UTC-6, TommyW wrote:

 I've tried for a couple hours trying to find the right combination of:

 browser.button(:id, 929940484).click

 to click the button on the Quibids.com item-specific page but have had 
 zero luck.  It keeps giving Unable to Locate Element error.  I have also 
 tried :value of Bid Now and a countless other combinations. 

 Any help would be appreciated.


-- 
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


[wtr-general] Hidden label (Div)

2012-12-04 Thread rockbox
Hi,

I'm fairly new to WATIR and to familiarize myself, I'm using Facebook as my 
website laboratory. So I can automate my login but when I try and automate 
the posts of status I'm now lost since the Post button will appear when 
the text area is clicked and I don't know how to do this in WATIR. Can 
anyone offer any assistance please?

-- 
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


Re: [wtr-general] Hidden label (Div)

2012-12-04 Thread Željko Filipin
On Tue, Dec 4, 2012 at 3:37 PM, rockbox carlwilliam.tabla...@gmail.comwrote:

 I'm fairly new to WATIR and to familiarize myself, I'm using Facebook as
 my website laboratory.


Facebook, Gmail and similar apps are not good for learning Watir, since
they use a lot of fancy JavaScript.

Ž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


Re: [wtr-general] Hidden label (Div)

2012-12-04 Thread Željko Filipin
On Tue, Dec 4, 2012 at 4:57 PM, rockbox carlwilliam.tabla...@gmail.comwrote:

 So I guess it's one of WATIR's limitations? It's not so good in a heavy
 JavaScript Environment or is it for advance WATIR developers?


It is not a limitation of Watir, since it can handle JavaScript just fine,
but it would be easier for you to practice on simpler apps.

Ž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