Hi All,
I would like to capture all the links under a particular div class.
could you please help me in this front.?
Thanks
Soori
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to
Le 9 nov. 2009 à 10:01, Soori a écrit :
Hi All,
I would like to capture all the links under a particular div class.
could you please help me in this front.?
Thanks
Soori
Hello soori,
You should use the links method as a sub element of your div (read the
doc Luke). Should be
Thanks Frédéric de Villamil for the quick response.
I would also like to capture the text on the div as shown below.
the code is something like this,
div class=test_container id=mytest-data
li
div class=mydata encoded=iudasfhakASDa= onselectstart=return
false;TEST DATA1/div
div
Yes, X is intialised to 1.
On Nov 6, 7:17 pm, Super Kevy kpe...@scholarshipamerica.org wrote:
And what is x initialised to? I assume it has to be 1 when it
begins the top of the loop.
On Nov 5, 3:52 am, Vishal bvkon...@gmail.com wrote:
Alan,
Before the loop I am initiating 'x'. I
I think you have to study the Watir guide.
Solution 1:
$ie.divs.collect {|div|
if div.class_name == mydata
puts div.text
end
}
Solution 2:
$ie.lis.collect {|li|
puts li.div(:index, 1).text
}
Thanks.
Wesley Chen.
For life, the easier, the better.
On Mon, Nov 9, 2009 at 6:32 PM, Soori
Thanks a lot Wesley Chen. it works.
I will go through the Watir guide.
/Soori
On Nov 9, 3:46 pm, Wesley Chen cjq@gmail.com wrote:
I think you have to study the Watir guide.
Solution 1:
$ie.divs.collect {|div|
if div.class_name == mydata
puts div.text
end}
Solution 2:
hi
you have option in firefox for that in firefx u in edit u have preference in
that u have clear history cokkies aftre close firefox which will crear
cokkies and history
On Fri, Nov 6, 2009 at 1:02 PM, Marlon marlonmoja...@gmail.com wrote:
Hi,
How can I delete browser cookies on firewatir?
This fork off of Master seems to have the pieces I have been needing
to overcome som of my issues:
http://github.com/aesterline/safariwatir/commit/a1a5717775ef007c337a01482ee3faf9d5a4d8e2
As I'm no expert, can someone help me by explaining how to install a
safariwatir gem from a fork of a repo.
Using cucumber and watir - Vista and Windows 7
Get the following error message:
Unble to locte element, using :nme,
q (Wtir::Exception::UnknownObjectException)
./fetures/step_definitions/serch_steps.rb:11:in `/I serch for
(.*)/'fetures/serch.feture:8:in `When I serch for cucumber
Github used to serve up gems, but no longer is building/serving new
gems. So you'll need to clone the repository and build/install the gem
manually.
Hope this helps.
Bret
QAguy wrote:
This fork off of Master seems to have the pieces I have been needing
to overcome som of my issues:
On Mon, Nov 9, 2009 at 9:58 PM, QAguy qablogm...@gmail.com wrote:
As I'm no expert, can someone help me by explaining how to install a
safariwatir gem from a fork of a repo.
This is from http://github.com/redsquirrel/safariwatir
git clone git://github.com/redsquirrel/safariwatir.git
cd
Somebody seems to be stealing all of your letters 'a'. Watir needs these,
otherwise it's just 'wtir', and lacking the 'application' part can't do
anything. I suggest you hire a privte detective to track down where all of
your 'a's are disappearing to. The police are no help with this sort of
thing
Anything else you can suggest?
Thanks
On Nov 4, 5:57 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Wed, Nov 4, 2009 at 11:53 PM, QAguy qablogm...@gmail.com wrote:
puts browser.link(:text, /Sign/).text gives me a result of Sign Out
It is late here, my brain is sleeping. What do
Per http://wiki.openqa.org/display/WTR/include+Watir
Don't use 'include'
On Mon, Nov 9, 2009 at 3:49 PM, tester86 sagar.am...@gmail.com wrote:
I am trying to run a watir script:
require 'watir'
include Watir
ie = Watir::IE.new
ie.goto(http://google.com;)
ie.text_field(:name,
I am trying to run a watir script:
require 'watir'
include Watir
ie = Watir::IE.new
ie.goto(http://google.com;)
ie.text_field(:name, q).set(watir)
ie.button(:name, btnG).submit
when I run it from command line ruby filename.rb I get the following
error message:
That's funny.
Thanks.
Wesley Chen.
For life, the easier, the better.
On Tue, Nov 10, 2009 at 5:15 AM, Ethan notet...@gmail.com wrote:
Somebody seems to be stealing all of your letters 'a'. Watir needs these,
otherwise it's just 'wtir', and lacking the 'application' part can't do
anything. I
Vishal,
I will rephrase your code in a pseudo code in a way that highlights the
problem with your code (since the error has gone unnoticed by others).
Go through each row in a table on this page,
if the row has a Booking ID,
Then click the search button (going to a new page)
What version of Watir are you using?
tester86 wrote:
I am trying to run a watir script:
require 'watir'
include Watir
ie = Watir::IE.new
ie.goto(http://google.com;)
ie.text_field(:name, q).set(watir)
ie.button(:name, btnG).submit
when I run it from command line ruby filename.rb I get
Hi,
Add first line -- require 'rubygems'
Remove line no.2 -- include Watir
I hope it works now. If its not working then Please provide more details
about Watir Verison and Ruby version.
Thanks
On Tue, Nov 10, 2009 at 3:19 AM, tester86 sagar.am...@gmail.com wrote:
I am trying to run a watir
19 matches
Mail list logo