I have the need to store the first half of a URL inside a variable which will be used later when running other commands. Does anyone know a method to extract the first part of the URL and ignore everything after the delimiter ?
I was thinking something similar to this but instead of storing everything after the delimiter, store the value before.
javascript{storedVars['MyVariable'].split('=')[storedVars['delimiter']]}
The format of the URL is similar to the following...
mywebsite.ca/cms/One.aspx?objectId=145655&contextId=1320565&parentId=1274179
The desired result would be to store mywebsite.ca/cms/One.aspx?objectId=145655 inside a variable.
Update:
I was able to solve my problem by referencing this post
Extract part of a text with selenium IDE and put it into variable
Thank you