-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access MVC Areas in Seleno UI Testing #257
Comments
Hi @Kalyan-Basa . Assuming your areas are registered in the RegisterRoutes method, there is an overload of NavigateToInitialPage that takes a dictionary of route values. This can be used to populate the area value.
Thanks |
Hi @mwhelan , I have tried the above approach but this how my URL is getting formed (Got this from browser Developer Tools.) http://localhost:519/Test/Details?area=Area1 whereas, I wanted it to be http://localhost:519/Area1/Test/Details Thanks |
Not sure if 'area' should be case sensitive? Try
|
No, it doesn't help. |
Do you have the areas registered in RegisterRoutes method? |
Yes, I've my areas registered in MVC application like the below.
|
I have two modules in our Application and we have setup two areas for each of the module.
Ex:
Area1
Similarly for Area2
The following are the routes
Using Seleno, I'm able to access routes without the Areas.
i.e., /Apply/ActionMethod
But I want to integrate Areas as well in the Seleno UI Functional testing project.
While initiating SelenoHost, I have configured routes as below
Thanks in Advance.
The text was updated successfully, but these errors were encountered: