Re: [Wtr-general] Problem finding a link URL with RegEx
Hi Bret Using 1.5.1.1037 try this: $ie.link(:text = 'New', :index = 2).click I added multiple attribute support last night for links. How could I get hold of this version. Is there a CVS repo I can download from? Could you also tell me the name of the method, so I could have a look at it. Much Thanks Aidy --- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
http://openqa.org/watir/cvs.actionOn 6/14/06, Adrian Rutter [EMAIL PROTECTED] wrote:How could I get hold of this version. Is there a CVS repo I can download from? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Problem finding a link URL with RegEx
I have got 2 'New' links in one HTML page. The second link has a URL as this: http://gbahevm07l15:9081/wps/myportal/!ut/p/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4i3dAHJgFjGpvqRqCKOcAFfj_zcVKBwpDmQ726kH5abmZeZm1mVmgITdAvDImjoFIBN1MhbPywvvygX6IoQuKGG2AwNRRYMQhgQoO-tH6BfkBsaUW6ca2GcG-BnWubsCADEVrkI/delta/base64xml/L0lDVE83b0pKN3VhQ1NZSkNncFJDZ3BSQS9ZSVVJQUFJSUlJSUlJTU1JSUlNSUlDQ0lHRUVBSktPQk9CS09KRkpGS0pBIS80QjFpY29uUVZ3R3hPVVRvSzc5WVFyTmh6RGNJN0RsRzR4QSEvN18wXzEyUC8xMTQyNS9zcGZfQWN0aW9uTmFtZS9zcGZfQWN0aW9uTGlzdGVuZXIvc3BmX3N0cnV0c0FjdGlvbi8lMG5ld1RlcnJpdG9yeUJJQy5kbw!!#7_0_12P The beginning and end will always be the same whatever environments i.e. http://gbahevm07l15:9081/wps/myportal 7_0_12P This is the regex I have used without success http://gbahevm07l15:9081/wps/myportal\/.*/7_0_12P $ie.link(:url, 'http://gbahevm07l15:9081/wps/myportal\/.*/7_0_12P').click Could anyone help? Aidy --- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
Try this:$ie.link(:url, /http:\/\/gbahevm07l15:9081\/wps\/myportal.*7_0_12P/).clickOn 6/13/06, Adrian Rutter [EMAIL PROTECTED] wrote:I have got 2 'New' links in one HTML page. The second link has a URL as this: http://gbahevm07l15:9081/wps/myportal/!ut/p/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4i3dAHJgFjGpvqRqCKOcAFfj_zcVKBwpDmQ726kH5abmZeZm1mVmgITdAvDImjoFIBN1MhbPywvvygX6IoQuKGG2AwNRRYMQhgQoO-tH6BfkBsaUW6ca2GcG-BnWubsCADEVrkI/delta/base64xml/L0lDVE83b0pKN3VhQ1NZSkNncFJDZ3BSQS9ZSVVJQUFJSUlJSUlJTU1JSUlNSUlDQ0lHRUVBSktPQk9CS09KRkpGS0pBIS80QjFpY29uUVZ3R3hPVVRvSzc5WVFyTmh6RGNJN0RsRzR4QSEvN18wXzEyUC8xMTQyNS9zcGZfQWN0aW9uTmFtZS9zcGZfQWN0aW9uTGlzdGVuZXIvc3BmX3N0cnV0c0FjdGlvbi8lMG5ld1RlcnJpdG9yeUJJQy5kbw!!#7_0_12P The beginning and end will always be the same whatever environmentsi.e.http://gbahevm07l15:9081/wps/myportal7_0_12P This is the regex I have used without successhttp://gbahevm07l15:9081/wps/myportal\/.*/7_0_12P$ie.link(:url, ' http://gbahevm07l15:9081/wps/myportal\/.*/7_0_12P').clickCould anyone help?Aidy--- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure.If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.--- ___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
Thanks for the correct RegEx; it finds an object, but not the one I want. The below are the url's of the second 'Filter' and 'New' links. They are hardly different and I am sure they will change in a different environment, so I can't hard-code them http://gbahevm07l15:9081/wps/myportal/!ut/p/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4i3dAHJgFjGpvqRqCKOcAFfj_zcVKBwpDmQ726kH5abmZeZm1mVmgITdAvDImjoFIBN1MhbPywvvygX6IoQuKGG2AwNRRYMQhgQoO-tH6BfkBsaUW6ca2GcG-BnWubsCADEVrkI/delta/base64xml/L0lDVE83b0pKN3VhQ1NZSkNncFJDZ3BSQS9ZSVVJQUFJSUlJSUlJTU1JSUlNSUlDQ0lHRUVBSktPQk9CS09KRkpGS0pBIS80QjFpY29uUVZ3R3hPVVRvSzc5WVFyTmh6RGNJN0RsRzR4QSEvN18wXzEyUC8xMTQyNS9zcGZfQWN0aW9uTmFtZS9zcGZfQWN0aW9uTGlzdGVuZXIvc3BmX3N0cnV0c0FjdGlvbi8lMG5ld1RlcnJpdG9yeUJJQy5kbw!!#7_0_12P http://gbahevm07l15:9081/wps/myportal/!ut/p/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4i3dAHJgFjGpvqRqCKOcAFfj_zcVKBwpDmQ726kH5abmZeZm1mVmgITdAvDImjoFIBN1MhbPywvvygX6IoQuKGG2AwNRRYMQhgQoO-tH6BfkBsaUW6ca2GcG-BnWubsCADEVrkI/delta/base64xml/L0lDVE83b0pKN3VhQ1NZSkNncFJDZ3BSQS9ZSVVJQUFJSUlJSUlJTU1JSUlNSUlDQ0lHRUVBSktPQk9CS09KRkpGS0pBIS80QjFpY29uUVZ3R3hPVVRvSzc5WVFyTmh6RGNJN0RsRzR4QSEvN18wXzEyUC8xMzc3Ni9zcGZfQWN0aW9uTmFtZS9zcGZfQWN0aW9uTGlzdGVuZXIvc3BmX3N0cnV0c0FjdGlvbi8lMHNob3dUZXJyaXRvcnlCSUNTZWFyY2guZG8!#7_0_12P Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).click Cheers Aidy --- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
Thanks for the correct RegEx; it finds an object, but not the one I want. Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).click Possibly--but this might be a good occasion to ask the developers for testability. ---Michael B. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
MB wrote: Possibly--but this might be a good occasion to ask the developers for testability. I think Websphere Portal instantiates each object dynamically and according to the developers, there is nothing they can do. Aidy --- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --- ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
Adrian Rutter wrote: Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).click It is currently possible to access the second link on a page, but not with a filter. '$ie.links[2]' will give you the second link on the page, and you can open the page in IRB and do '$ie.show_links' to see which index to use for the link you want. David ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Problem finding a link URL with RegEx
Adrian Rutter wrote: Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).clickUsing 1.5.1.1037 try this: $ie.link(:text = 'New', :index = 2).click I added multiple attribute support last night for links. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general