[wtr-general] Re: how to install prev versions of watir

2016-11-16 Thread Alex Rodionov
watir-scroll is fixed to work with Watir 6 in v0.3.0 On Wednesday, November 16, 2016 at 10:00:27 PM UTC+6, gary wrote: > > will do thanks > > On Wednesday, 16 November 2016 15:48:20 UTC, Titus Fortner wrote: >> >> File a bug on watir-scroll. Alex just needs to switch reference from >>

[wtr-general] Re: How to test infinite scrolling on web page

2013-12-20 Thread Alex Rodionov
Try to use watir-scroll https://github.com/p0deje/watir-scroll/ - it might help you. On Friday, December 20, 2013 4:53:20 PM UTC+7, Anisha wrote: Hi, I am using watir-webdriver. The application that I am testing has infinite scrolling implemented. It is more or less like 1000 results

[wtr-general] Re: cannot search by :url

2013-09-17 Thread Alex Rodionov
Why do you search for url when attribute is href? It should be b.link(:href, /loadBuildPage/).exists? On Tuesday, September 17, 2013 6:51:42 AM UTC+7, Rakesh Kapoor wrote: i want to search for links by the partial name of path. i want to click on the element where it points to

[wtr-general] Re: how to check TextArea is enabled or disabled

2013-06-27 Thread Alex Rodionov
As Jarmo pointed, there is #disabled? method which is generated from HTML spec. I doubt we need one more #enabled? On Wednesday, June 19, 2013 6:20:55 PM UTC+7, mc060200778 wrote: Hi, Is there any method available using which i can check whether the textarea is enabled or disabled. i

Re: [wtr-general] Re: Introducing Watirsome

2013-05-19 Thread Alex Rodionov
needed. -- Cheerz, Alex Rodionov On Sunday, May 19, 2013 at 21:29 , Jarmo Pertman wrote: By the way, element class method in test-page is not the same as your tag-based methods. Element in test-page is a method for providing container element - e.g. like el in Backbone.js. The method name

[wtr-general] Re: Introducing Watirsome

2013-05-18 Thread Alex Rodionov
wrote: Hi! If you're looking something really lightweight, then my gem Test::Page is the one you're looking for: https://github.com/jarmo/test-page Jarmo On Friday, May 17, 2013 11:46:18 PM UTC+3, Chuck van der Linden wrote: On Monday, May 13, 2013 11:36:12 PM UTC-7, Alex Rodionov wrote

[wtr-general] Re: How to locate an element on a mask layer?

2013-05-18 Thread Alex Rodionov
It is very difficult to help you unless you provide some actual Ruby and HTML code. On Saturday, May 18, 2013 9:28:26 AM UTC+7, Christian wrote: After I clicked a button,then the site gives a floating mask layer. I tried to find an element on the mask layer using class,like

[wtr-general] Re: Cannot identify button element by value?

2013-05-18 Thread Alex Rodionov
Reposting myself from SO: +1 to raise this as issue on watir-webdriver as it definitely needs discussion. I use button(:value) in my tests a lot and it actually matches button's value, so there is something behind this. According to code, button tag name and value are treated specifically.

[wtr-general] Re: Introducing Watirsome

2013-05-18 Thread Alex Rodionov
For the record, I have updated Watir readme to include all these libraries. On Saturday, May 18, 2013 8:19:47 PM UTC+7, Alex Rodionov wrote: @Jarmo @Chuck I created this because I've been using page-objecthttps://github.com/cheezy/page-objectfor more than a year and I didn't know abut

[wtr-general] Re: Parse HTML from database in Watir?

2013-05-16 Thread Alex Rodionov
For the record, that was replied on IRC: [09:25am] p0deje: lonny_: you can use data URI [09:26am] p0deje: browser.goto data:text/html,#{html} [09:27am] lonny_: Thanks. I'll give that a try. [09:29am] lonny_: Yes! That worked. Thank you very much. On Thursday, May 16, 2013 9:03:22 AM UTC+7,

[wtr-general] Re: Need to get the count of sections within a specific div

2013-05-16 Thread Alex Rodionov
That's pretty straightforward: browser.div(id: 'boxContainer').sections.size On Thursday, May 16, 2013 1:03:39 PM UTC+7, bhag...@gmail.com wrote: HI All, I am new to Watir and I need to get the count of sections within a specific DIV. Please see below. section id=lsBodyContent

[wtr-general] Re: Watir webdriver - How to click on last td in table ?

2013-05-16 Thread Alex Rodionov
Even more simple browser.table(class: 'rctable').td(index: -1).click On Thursday, May 16, 2013 4:19:35 AM UTC+7, Chuck van der Linden wrote: On Thursday, May 9, 2013 6:23:38 PM UTC-7, Ankita@Adslot wrote: If the number of rows is static, would make sense to use xpath and locate the last

[wtr-general] Introducing Watirsome

2013-05-14 Thread Alex Rodionov
Hey guys! I've recently released Watirsome, which is a gem I've been using at work for a long time as an alternative to well known page-object. It's a lot similar to it, but more dynamic and based on watir-webdriver. Thus (at least for now), it works only with it. Anyways, you can take a