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
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
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)
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
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
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
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
: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
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
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
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)
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
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
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
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
15 matches
Mail list logo