[Wtr-general] Button identification

2007-04-25 Thread Tunde Jinadu

Hi,

Apart from

id:
Value:
Name:

How else can a button be recognised, I'm having problems with a button being
recognised, if i run the script in isolation, the button in question is
selected (as well as if I do the flash method from a console session) but if
if I call the script using

Load 'scriptname.rb'

the script skips past the button I've identified using each of id:, Value:
or Name:

I prefer not to post the code as I'd have the post details of the source
code as well,

just another means of identifying a button will suffice for now, if it does
not work I'll come back to you.


script detail

if spreadsheetdata[:internet_end]  ==  /ApplyCards/ProductDetails.aspx



  ie.goto(test_site)
  load 'internetApply.rb'
  internetApply(ie, spreadsheetdata)
 continue
else

end


--
In theory, there is no difference between theory and practice; In practice,
there is.
   Chuck Reid
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Button identification

2007-04-25 Thread Željko Filipin

Hi Tunde,

In watir 1.5 I think you can use any attribute of a tag (like class), but I
am not sure about that.

ie.button(:class, my_class).click

you can also use index

ie.button(:index, 1).click

or html

ie.button(:html, /fancy_attribute='something'/).click

or xpath

ie.button(:xpath , //[EMAIL PROTECTED]'something']/)

or multiple attributes

ie.button(:name = my_name, :index = 2 ).click

Enough? :)

If you can post html of that button, it would be easier to answer.

Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Button identification

2007-04-25 Thread Tunde Jinadu

Here you  go

input type=submit name=ctl00$xx$bt_next value=Next onclick=if
(typeof(Page_ClientValidate) == 'function') { if (Page_ClientValidate() ==
false) { return false; }} this.value = 'Next';this.disabled =
true;__doPostBack('ctl00$xxx$bt_next',''); id=ctl00__bt_next
title=Proceed to the next step of your application
class=formbuttonproceed /

On 4/25/07, Željko Filipin [EMAIL PROTECTED] wrote:


Hi Tunde,

In watir 1.5 I think you can use any attribute of a tag (like class), but
I am not sure about that.

ie.button(:class, my_class).click

you can also use index

ie.button (:index, 1).click

or html

ie.button(:html, /fancy_attribute='something'/).click

or xpath

ie.button(:xpath , // [EMAIL PROTECTED]'something']/)

or multiple attributes

ie.button(:name = my_name, :index = 2 ).click

Enough? :)

If you can post html of that button, it would be easier to answer.

Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general





--
In theory, there is no difference between theory and practice; In practice,
there is.
   Chuck Reid
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Button identification

2007-03-01 Thread Simba
Hi,

Thanks Charley for your replay  but we can not use Devtoolbar in IE browser 
they [developers] are disabling IE toolbar as soon as we log in to our 
application.(Even F5  F11 is disabled).

thanks
simba
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6647messageID=19390#19390
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Button identification

2007-02-28 Thread Charley Baker
Try using the ie developer toolbar. I've finally added this to the Watir FAQ: 
http://wiki.openqa.org/display/WTR/FAQ#how-to-identify-html-elements

-Charley
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6647messageID=19360#19360
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Button identification

2007-02-26 Thread Bret Pettichord
Simba wrote:
 Thanks Bret , Toady i have seen that limitation in Watir site , i did not 
 knew this limitation in Watir  and also i am new to Watir , I have another 
 question for you 

 For some page I used ie.show_all_objects in CMD , it has given ouput 
 something like this
 HTML Docuemnt name=Quickwatch id=quickwatch 
 src=http://10.20.1.214:80/mwp/servlet/workspace/quickwatch?action=loadRES=1024X768

 I am not able to see objects and its properties of this document, Can you 
 please tell how to resolve this problem.
I don't understand your question.

Bret

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Button identification

2007-02-26 Thread Chris McMahon
That's a frame.  You need to do something like

frame(:name, 'Quickwatch').show_all_objects

On 2/22/07, Simba [EMAIL PROTECTED] wrote:
 Thanks Bret , Toady i have seen that limitation in Watir site , i did not 
 knew this limitation in Watir  and also i am new to Watir , I have another 
 question for you

 For some page I used ie.show_all_objects in CMD , it has given ouput 
 something like this
 HTML Docuemnt name=Quickwatch id=quickwatch 
 src=http://10.20.1.214:80/mwp/servlet/workspace/quickwatch?action=loadRES=1024X768

 I am not able to see objects and its properties of this document, Can you 
 please tell how to resolve this problem.
 -
 Posted via Jive Forums
 http://forums.openqa.org/thread.jspa?threadID=6647messageID=19116#19116
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Button identification

2007-02-22 Thread Simba
Hi,

I have several [b]Delete[/b] caption button on page , To identify them i am 
trying to use multiple properties but its giving error some thing like this

ie.button(:text='Delete',:index=1)

please anybody tell me how solve this problem.

thanks
Simba
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6647messageID=19038#19038
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Button identification

2007-02-22 Thread Željko Filipin

Mind reading does not work (The Braidy Tester).
Please send us your error message.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Button identification

2007-02-22 Thread Bret Pettichord
Simba wrote:
 Hi,

 I have several [b]Delete[/b] caption button on page , To identify them i am 
 trying to use multiple properties but its giving error some thing like this

 ie.button(:text='Delete',:index=1)

 please anybody tell me how solve this problem.

   
This is a known (to me) problem. So far multiple attributes are not yet 
supported for input elements. You're the first to say something about 
this...

http://jira.openqa.org/browse/WTR-74#action_13087

Bret

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Button identification

2007-02-22 Thread Simba
Thanks Bret , Toady i have seen that limitation in Watir site , i did not knew 
this limitation in Watir  and also i am new to Watir , I have another question 
for you 

For some page I used ie.show_all_objects in CMD , it has given ouput something 
like this
HTML Docuemnt name=Quickwatch id=quickwatch 
src=http://10.20.1.214:80/mwp/servlet/workspace/quickwatch?action=loadRES=1024X768

I am not able to see objects and its properties of this document, Can you 
please tell how to resolve this problem.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6647messageID=19116#19116
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general