I resolved my problem in 2 ways
ie.table(:id, "ivr_template:params").div(:index,1).click
ie.send_keys("lokesh")
and
ie.table(:id, "ivr_template:params").div(:index,1).click
ie.text_field(:index,1).set("lokesh")
Thanks Prajakta and jw
Regards,
Lokesh Agrawal
On Jan 13, 10:47 pm, jw wrote:
Tony,
you can find the patch here: http://jira.openqa.org/browse/WTR-320
Need to manually apply the patch as the line numbers in the patch
might not be correct for your version of watir (they are not for watir
1.6.5)
The patch works fine for me with ruby one-click installer 1.8.6-27 on
Win7 x64.
I believe I have found workaround. When I ran - gem install rasta -
rspec 1.3.0 was installed to the ruby directory. I ran the uninstall
on rspec 1.3.0, downloaded rspec 1.2.9 and ran that install locally.
Rasta is now working.
Here are the steps I took after running gem install rasta :
1. within
Hi Alpin
How did you get the click_no_wait to work on the patched ruby
1.8.6-27.
Is the patch on ruby 1.8.6-27, to solve this problem?
If so could you share the patch?
Thanks,
Tony
--
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to thi
Yikes!
I missed an ugly typo. Sorry about that - I should proof read better:
link_index = link_text.index('My link text').index
-should be-
link_index = link_text.index('My link text')
I'm not sure about the :beforeText problem - were you able to make my
www.Google.com example work?
-Tiffany
Thanks for the tips.
I tried the index method using the array as you suggested. When I ran
it, I get an "undefined method 'index'".
Also, when using the :beforeText or :afterText for the link, I get
"unable to locate element, using :beforeText..."
Any suggestions on if I'm doing something wrong
Sorry - I forgot to mention that the array will start at 0, but the
link index number in Watir will start at 1. You could create your
array with a placeholder for 0, or add one to the index number you get
from the array when you want to access the link in Watir.
-Tiffany
On Jan 13, 3:09 pm, Tiff
Hi!
You could build an array of all the links and then get the index:
link_text = Array.new
browser.links.each do |link|
link_text.push(link.text)
end
link_index = link_text.index('My link text').index
To click on a link that precedes some text, you can use :beforeText.
On the current Googl
have you tried using;
$browser = Watir::IE.attach(:url, "http://www.google.com";)
$browser = Watir::IE.attach(:title, "Google")
of course thats the *nix command, windows would be
irb:> ie = Watir::IE.attach(:url, "http://www.google.com";)
irb:> ie = Watir::IE.attach(:title, "Google")
Let me kno
Note that the iexplore process is created, I can see iexplore
processes getting created from the task manager - but I think the
"link" is not made with it... here is part of my code just in case you
need...
require 'rubygems'
def valid_User?(user)
ie=Watir::IE.new_process()
ie.visible = f
Hi
I need to use ie.new_process ... but I also need to run ruby as a
service (since I am using ruby/rails actually and want to have the
webserver as a service). However when I call new_process, and ruby is
a service, I get a method not found error.
Is there any workaround for this?
I need this fo
I was wondering if someone could inform me on how to do the following:
1. Retrieve link index number of a link. For instance, I know I can
find the link using ie.link(:text, "LinkText"), and I can also find
out the index number via irb. However, I want to be able to assign the
index number of that
I have tried to use rasta with the following combinations of ruby and
watir:
ruby 186-26 / watir 1.6.5
ruby 186-26 / watir 1.6.5
Here is the error I receive in either combination:
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- spec
cool.
well I was mostly addressing windows users so I didn't talk about sudo
I also update the cheat to use 'watir-console' and talk about
'console.log'
I am interested in showing how a tester can go from installing watit
to running interactive test sessions on a browser in less than 30
seconds.
I have read this wiki page
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups.
But all the info on this page seems IE specific. Will any of these
solutions work for Safariwatir?
I am trying to delete an item and in order to do so we generate a JS
pop-up asking the user to confirm they want to
I tried most of the solutions listed there. Had a hell of a time
trying to make one solution work consistently across different windows
platforms, as some solutions work (sometimes though) on Win 7/IE8
with a patched ruby 1.8.6-27 , but not on XP/IE7 with ruby 1.8.6-26
and vice versa.
I finally g
Did you try all the solutions on
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
solution #3 (after some customization) works for me very consistently.
On Jan 11, 7:29 pm, Alpinweis wrote:
> I am using the following code taken from Watir Wiki on JS Popups:
>
> def check_for_popups(tit
Željko,
The donations for bugs idea is great.
I remember the Mantis project having something similar for feature requests,
but I don't think it ever worked.
There were several donations for a "multi user issue assignment" feature
that never got implemented.
I'll donate next month :)
FK
On Wed
elsif(is_time = self.parseTime(last_value))
should probably be
elsif(is_time == self.parseTime(last_value))
break the problem up, write more helper methods, it's too big to debug
On Jan 12, 3:24 am, Hamid wrote:
> I wonder if anyone can help me to change the cod so it will also sort
> a empty
> even I am able to get the text
> ie.table(:id, "ivr_template:params").div(:index,1).text = lokesh or
> ie.table(:id, "ivr_template:params")[2][2].text
>
when you do this
ie.table(:id, "ivr_template:params").div(:index,1).text
it's just resolving to a string. you have to get hold of the
text_
it may be the difference between
"http://www.google.com";
and
"http://www.google.com/";
if you're typing it by hand each time it's easy to miss that "/"
On Jan 13, 5:47 am, Chandu80 wrote:
> Hi,
> When I type in the lines of code as you mentioned,I am able to see the
> correct url.
> Today I eve
On Wed, Jan 13, 2010 at 6:27 PM, jw wrote:
> I encourage you to mention donations monthly. I will be donating soon
> and only realized it was an option because of this post.
In that case, will do.
> I don't know
> if you or Tiffany will profit from it but you definitely should! : )
Watir contr
I encourage you to mention donations monthly. I will be donating soon
and only realized it was an option because of this post. I don't know
if you or Tiffany will profit from it but you definitely should! : )
On Jan 12, 6:43 am, Željko Filipin
wrote:
> Thanks Alan and Marek for the donations.
>
so it is working (clicking an element) just not the right one?
If the page is static you could try using the index of the element
ie.link(:index, 2)
but this is usually not the best way, especially if your elements have
ids
On Jan 12, 9:27 am, tester86 wrote:
> HI
>
> With the app there is an id
I finally fix it. The problem was firewatir 1.6.5 that remained
installed... Someway that was perturbing the running.
Thanks
On Jan 13, 10:46 am, juanmaflyer wrote:
> In fact the complete error is 'no such file to load -- watir/ie
> (LoadError)
>
> On Jan 13, 10:39 am, juanmaflyer wrote:
>
>
>
I'm not sure about the problem in watir for installation though but one
check you may perform is to go to the location where watir is installed and
check whether ie.rb is present or not. You may able to locate it somewhere
like \\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie.rb
If you are not ab
In fact the complete error is 'no such file to load -- watir/ie
(LoadError)
On Jan 13, 10:39 am, juanmaflyer wrote:
> Hi! I will be short.
>
> I have been testing long time with watir 1.6.2. Yesterday I decided to
> switch to Watir 1.6.5 and some scripts didn't work as expected...I
> don't blame
This is a known bug, please search this group and
http://jira.openqa.org/browse/WTR
Željko
--
watir.com - community manager
watirpodcast.com - host
--
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to watir-gener
Hi! I will be short.
I have been testing long time with watir 1.6.2. Yesterday I decided to
switch to Watir 1.6.5 and some scripts didn't work as expected...I
don't blame the problem on Watir, but just in case, i decided to
uninstall watir 1.6.5 and install 1.6.2 again. Perfect!
After that, when
i got the solution run the below patch and i am able to install waitr
rubygems-1.3.5
On Jan 13, 5:23 pm, Prashant wrote:
> I am getting error message while installing watir -v 1.6.2 even i
> tried using gem install firewatir -v 1.6.2 it gets the same resule
>
> C:\>gem install watir -v 1.6.2
> ER
I am getting error message while installing watir -v 1.6.2 even i
tried using gem install firewatir -v 1.6.2 it gets the same resule
C:\>gem install watir -v 1.6.2
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find watir (= 1.6.2) in any repository
C:\>gem install fi
On Wed, Jan 13, 2010 at 5:42 AM, marekj wrote:
> $ gem install cheat
Mac (and probably Linux) users, do not forget you need sudo or `cheat watir`
will not work (at least it did not work for me until I used sudo):
$ sudo gem install cheat
Thanks Marek, I am glad to see you more and more involved
Hi,
When I type in the lines of code as you mentioned,I am able to see the
correct url.
Today I even the code ran without error i.e I am able to attach to the
existing window successfully.However i haven't touched the code or
modified it,so what could be the reason for the change in the results?
Wonderful .. can you create a patch and send to it? Or you can create a JIRA
ticket for the same and send this code in comment. will add this to
FireWatir.
Thanks,
Angrez
On Wed, Jan 13, 2010 at 3:09 PM, basu wrote:
>
> I tried something like this , it works for me :)
>
> class FireWatir::Elem
Following should serve your purpose:
ie.div(:class, "testing_1).divs.each do |dv|
puts dv.text
-Prajakta
On Wed, Jan 13, 2010 at 4:41 PM, Soori wrote:
> Hi John,
>
> .html will return the html with ,etc,
>
> I would like to get only the text inside the div .
>
> Thanks,
> Soori
> On Jan 13,
I thought you wanted all the text, with the div tags? Are you trying
to get "testdata1", "test data2", etc then?
If so, they are in another div, not the "testing_1" class, so I'd use
xpath for each one, like this:
ie.element_by_xpath("//d...@class = 'testing_1']/div[1]").text # and
div[2], div[3]
Something like this should work (not tested):
browser.div(:class, "testing_1).divs.each {|div| puts div.text}
Željko
--
watir.com - community manager
watirpodcast.com - host
--
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group
Hi John,
.html will return the html with ,etc,
I would like to get only the text inside the div .
Thanks,
Soori
On Jan 13, 3:30 pm, John Kolokotronis wrote:
> Try ie.div(:class, "testing_1).html instead...
>
> Regards,
>
> John
>
> On Jan 13, 10:20 am, Soori wrote:
>
> > All
>
> > I am captur
Try ie.div(:class, "testing_1).html instead...
Regards,
John
On Jan 13, 10:20 am, Soori wrote:
> All
>
> I am capturing the the text inside a div as mentioned below,
>
>
> testdata1
> test data2
> test:data3
>
> ie.div(:class, "testing_1).text captures the information on a single
> line...
>
All
I am capturing the the text inside a div as mentioned below,
testdata1
test data2
test:data3
ie.div(:class, "testing_1).text captures the information on a single
line...
I would like to print it as shown on the html above.
I got stuck in this.Please show me a way to proceed.
Thanks in a
I tried something like this , it works for me :)
class FireWatir::Element
def css_color()
assert_exists
jssh_command = "var obj = #{element_object}; var val =
document.defaultView.getComputedStyle(obj,null).getPropertyValue
('color');val;"
jssh_socket.send("#{jssh_command}\n", 0)
41 matches
Mail list logo