[wtr-general] Clicking an empty Div with Watir

2014-03-19 Thread Elad Shalom
Hi. I'm trying to create a POC for watir on a gaming website. I got most of it figured out, but I can't seem to click on a specific div there. Website: http://wpstg.cryptodom.com/roulette/ My tries for that are: divChips = browser.element :class = 'chips-area' divChips.element(:css,

Re: [wtr-general] Clicking an empty Div with Watir

2014-03-19 Thread Oscar Rieken
the problem is the area you want to interact with is inside of a hidden div. Users of your site can not interact with a hidden div so watir should not either. your best bet would be to get the site in a state where the chip area is visible. then you can interact with it On Tue, Mar 18, 2014 at

Re: [wtr-general] Clicking an empty Div with Watir

2014-03-19 Thread Elad Shalom
OK.. How about wait_until instead of using sleep 15? Will that work? How do I implement that? Thanks! -- -- 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

Re: [wtr-general] Clicking an empty Div with Watir

2014-03-19 Thread Oscar Rieken
wait_until will wait until they are visible and since they do not become visible on their own that would be never? sleep will do nothing but stop execution for 15 seconds what you need to do if you want to interact with that object is make the chip area visible. once you have done that you would

[wtr-general] Watir-rspec still requires browser variables when executing browser methods?

2014-03-19 Thread Arjen Ruiterkamp
Hello, I am fairly new to Ruby and trying to setup some acceptance tests using the watir-rspec gem. Now https://github.com/watir/watir-rspec states: - No need to use the @browser or $browser variables when executing browser methods. However, this doesn't seem to work for me. What I've

Re: [wtr-general] Clicking an empty Div with Watir

2014-03-19 Thread Elad Shalom
Thanks, for your help. I was told to quit that one and do a different POC. Should be very simple, but again - doesn't work. This should login to a website with Twitter. browser = Watir::Browser.start 'http://www.12mass.com/' browser.link(:class, 'priceLogin').click sleep 2

Re: [wtr-general] Clicking an empty Div with Watir

2014-03-19 Thread Oscar Rieken
http://watirwebdriver.com/browser-popups/ On Wed, Mar 19, 2014 at 1:57 PM, Elad Shalom e...@devaffair.com wrote: Thanks, for your help. I was told to quit that one and do a different POC. Should be very simple, but again - doesn't work. This should login to a website with Twitter.