Hello,
I want to redirect to another page using a code module.
I can't use Response.Redirect, how should solve this issue?
C# redirect to another page
Re: C# redirect to another page
Hi,
I'm afraid, there is not enough information regarding your problem. Redirect to WHAT kind of page? HTML page, desktop app page, mobile app page,...?
What kind of technology is your AUT?
What's your Ranorex version?
Could you please post a Ranorex snapshot (not screenshot) of the page in question?
You see, it's impossible to help you without further details.
I'm afraid, there is not enough information regarding your problem. Redirect to WHAT kind of page? HTML page, desktop app page, mobile app page,...?
What kind of technology is your AUT?
What's your Ranorex version?
Could you please post a Ranorex snapshot (not screenshot) of the page in question?
You see, it's impossible to help you without further details.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: C# redirect to another page
I want to redirect to a aspx page within the same browser window (desktop pc, internet explorer),
I'm using Ranorex version 5.3.1.22939
I'm using Ranorex version 5.3.1.22939
Re: C# redirect to another page
Hi,
Try InvokeAction.Navigate(string url) function. Basically, it should look like this:
Try InvokeAction.Navigate(string url) function. Basically, it should look like this:
Code: Select all
repo.DOMElement.Self.Navigate("url");
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: C# redirect to another page
Hi,
There's no DOMElement in repo.
There's no DOMElement in repo.
Re: C# redirect to another page
DOMElement used in my example is just a dummy element used for illustration You should replace it with your DOM element (topmost element for given domain).
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: C# redirect to another page
Can you post a sample how to get this dom element?
Re: C# redirect to another page
Just add a new element to repository, with @domain attribute (domain name of your main page). Something like this:
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: C# redirect to another page
Problem solved. Thanks for your help!