Hi All,
I want to capture URL of the current web page using C # code in Ranorex.
Can any one please help me out...?
I am trying to use this piece of code
string url = HttpContext.Current.Request.Url.AbsoluteUri;
But no use.
Thanks,
Praveen.
Capture url in C #
Re: Capture url in C #
You need to first of all find the dom, then you can access the page url -
Code: Select all
Ranorex.Webdocument dom = "/dom[@domain~'ranorex']";
string pageurl = dom.PageUrl;
-
- Posts: 27
- Joined: Sat Aug 27, 2011 9:41 am
Re: Capture url in C #
Thanks. It is working.