[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-31 Thread abhisheksreepal
Thanks Ethan. I have tried many things but still unable to click --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread Željko Filipin
On Tue, Oct 27, 2009 at 5:10 AM, abhisheksreepal abhisheksree...@gmail.com wrote: The only attribute which distinguish between them is 'onclick' Then try :xpath or :html (code not tested): browser.link(:xpath,//a...@onclick='onclick_value']/).click http://wiki.openqa.org/display/WTR/XPath

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread abhisheksreepal
Thanks Zeljko, With xpath, I could easily detect 'Reset' Button' .Here I am using @href ie.link(:xpath,//a...@href='login.jsf']/).click #Click Reset Button But for The Buttons Submit,Menu, I am using onclick(onclick value for Submit which is unique for Submit--Verified with source)

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread Željko Filipin
If j_id75 is unique in onclick, try this: browser.link(:html, j_id75).click Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread abhisheksreepal
Hi Zeljko, It is not working. Unable to locate element, using :html, j_id75 (Watir::Exception::UnknownObjectException) Please correct me If i am wrong Since onclick is an event, xpath might not work (I think only attributes like href will work with xpath) Zeljko, Can I use Regular Expression

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-27 Thread Ethan
I don't expect you'll be able to get it working using the options you have for #link - I think you will have to iterate over #links. Try something like container.links.detect do |link| link.ole_object.getAttributeNode('onClick').value == var a=function(){ etc end

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread abhisheksreepal
Hi, Did Anyone come to know about this problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread Ethan
:onclick isn't supported as a method of locating elements - it doesn't actually appear on the DOM as text, as far as I know, but shows up as a function, so you can't compare text to it. I could be wrong, maybe there's a way to get the text, but I don't think it's likely to be supported in any

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread abhisheksreepal
Thanks for the reply Ethan. I tried this puts ie.buttons.length But it returned '0' This is the reference link. http://www.edelbullion.com/edelweiss/content/index.jsf Any Suggestion how to go forward. --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread Paul Rogers
the 'register now' and the 'buy now' arent buttons. they look like buttons, but they are links. Use firebug to investigate the dom before posting here please. Paul On Mon, Oct 26, 2009 at 8:54 PM, abhisheksreepal abhisheksree...@gmail.comwrote: Thanks for the reply Ethan. I tried this puts

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread abhisheksreepal
Hi Paul, I am sorry. I should have added these comments. Just Navigate to Login screen.(By clicking Login link on top right corner) Please examine these two fields Submit and Reset. (I couldn't give you this link(link to Login Screen) since link contains session id which keeps on changing)

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread Paul Rogers
the submit and reset buttons are also links Paul On Mon, Oct 26, 2009 at 9:23 PM, abhisheksreepal abhisheksree...@gmail.comwrote: Hi Paul, I am sorry. I should have added these comments. Just Navigate to Login screen.(By clicking Login link on top right corner) Please examine these two

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread abhisheksreepal
I am sorry. I was just going by name class='normalbutton' But Any solution to access these fields. and Also To access menu like 'Home','MyAccount' etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread Ethan
It is a link. Use the #link method. Please read wiki entries under http://wiki.openqa.org/display/WTR/Start+Here particularly: http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes and: http://wiki.openqa.org/display/WTR/Cheat+Sheet On Mon, Oct 26, 2009 at 23:41, abhisheksreepal

[wtr-general] Re: Not able to click Button and MenuText in Real time App

2009-10-26 Thread abhisheksreepal
Hi Ethan, I have tried using link method. (But Actual Problem is there are more links which have same attributes.) For e.g. Verify for 'Home',My Account','Trade,'Charts' etc. class: mytext href: http://www.edelbullion.com/edelweiss/content/index.jsf# The only attribute which distinguish