Something like this should work, although it'd be better to restrict the # of
links to be checked rather than iterating through all of them
link = b.links.find {|link| link.href =~ /Page\$\d+/}link.href.match(
/Page\$\(d+)/)[1] # assumes link is actually found
From: Joe Fleck
To: Watir G
I think the source would help everyone give you some solid solutions.
I would think you might be able to do something like this:
ie.link(:text=>'Location 1').link(:text=>'Building Address')
Its possible but without the full source (like Derek said) its difficult to
come to a good solution.
Joe
Can you provide the full html so we can get a better idea what you are
trying to do?
Joe
On Thu, Oct 23, 2014 at 2:03 PM, Genexodus wrote:
> You description is pretty vague. However, you could do this pretty easy
> with
>
> .link(:text, "2").click
>
> Replace 2 with 3 and so on. Should work as
Flash and flex are all image based autoamtion. I Use sikuli. You can you
use different plugins with eclipse for effective coding as to not use the
record and playback feature. But the record and playback is useful to get
started.
http://www.sikuli.org/
On Tuesday, April 15, 2014 1:16:10 PM UT
Is this your entire script?
require 'minitest/autorun'
> require 'watir-webdriver'
> $browser = Watir::Browser.new
> def test_there_should_be_text_About_Google
> $browser.goto("http://www.google.com";)
> assert(browser.text.include?("About Google"))
> end
>
- remove these
> end
You description is pretty vague. However, you could do this pretty easy with
.link(:text, "2").click
Replace 2 with 3 and so on. Should work as they are recognized in the
browser and by WATIR as links.
On Friday, August 1, 2014 10:31:02 PM UTC-6, Ali SB wrote:
>
> Hi all
>
> I want to click on
When using modal Dialogs we use autoit.
This may help
http://stackoverflow.com/questions/5017672/watir-with-autoit-tutorial
On Wednesday, September 24, 2014 1:43:56 AM UTC-6, Siyaram Patidar wrote:
>
> I am able to click the button which launch facebook modal dailog for login
>
> but it is not
Our website is entirely based in AngularJS, since the front end is still
HTML, WATIR acts no different. The underlying framwork doesn't matter.
WATIR works from the presentation layer. Happy coding!
On Monday, October 20, 2014 3:14:10 PM UTC-6, christina wrote:
>
> Hi,
>
> I have a question,
>
>
I don't know how people feel about xPath but this is usually where I use
xPath. Using hard coded index is a bit inflexible in my opinion and
doens't tell you what it's really selecting. What if another item with
duplicate name appears and now you are selecting index 1, but with the
extra duplicat
+1
Super Kevy
On Thu, Oct 16, 2014 at 3:47 PM, Super Kevy
wrote:
> ie.link(:text=>'Building Address',:index=>1).click
> ie.link(:text=>'Building Address',:index=>2).click
>
>
> On Saturday, August 2, 2014 4:36:48 AM UTC-5, Rams wrote:
>>
>>
>> Hi,
>>
>> I have duplicate links in the webpage as I
Hi Critina,
You don't have to close browser (@browser.close) on *After* hook.That
closes browser after each scenario execution.
Also, you don't have to start a new browser on before hooks because that
starts a new browser before each scenario execution.
You could use a lazy loading on Before li
On Wed, Oct 22, 2014 at 9:45 PM, Xuemin Yin wrote:
> It's *NOT* launched in a browser, but behaves like one, with a console
> that can be used to inspect the HTML elements liek you would with a Chrome
> browser.
>
Try launching your app by providing path to it. Something like this:
https://lean
12 matches
Mail list logo