url = ie.url id = 'jsessionid=' puts url[url.index(id)+id.length..url.length]
On 31 мар, 09:03, vasu <[email protected]> wrote: > Dear All, > > Iam using datadriven framework, and used href to click on a link. It > was working fine. Now for security reason unique session ID was also > generated and same was updated to the href for each login session. > > Please let me know how to capture the sessionID from URL and update > the same in XLS. > > My script is like this: > > ie.link(:href, record4['url']).click > ie.textField(:name, "targetnumber").set(record4['targetnumber']) > > Previous url was like this:https://abcd.com/test.in?cmd=p2p > > now it is like this > :https://abcd.com/test.in;jsessionid=JRvbP1CyCY5tMd153lZJ9mzp5Rv7tNWQ4... > > I want to capture the jsessionid generated. > > Please help me it is very urgent > > thanks, > vasu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
