Link to home
Start Free TrialLog in
Avatar of accordia
accordia

asked on

Java don't recognize Selenium UI map

Hi,

I am trying to use my UI map which works in Selenium IDE, but when I use this map in Java Junit test, UI element not found.

You have here the Java code, and Javascript UI map.

It may be a problem in UI Map, where is definition of pageset and domain.
UI-Map.js
Example.java
Avatar of Am P
Am P
Flag of India image

accordia,

I've found the following line in your java code.

File uimap = new File("lib\\UI Map.js");

Check the filename (UI Map.js) provided. your attached file is "UI-Map.js".
Avatar of accordia
accordia

ASKER

Hi Amit N Panchal,

Thanks for the quick reply to my question.

I use "UI Map" here to present my problem. But when I am writing a code, I always use only one word in the name of map, I am not leaving a blank space between words. (e.g UCMap, DSMap).

The only difference between this and the other maps is the URL that consists of two words separated by a dot. (e.g. domain.subdomain.com this is the address of the live site).

With this map I have a problem when I use it on localhost where in the server name is only one word.

I have uploaded these files again, with changes which I made on your suggestion.

Sorry if I'm not quite clear in my writing, and presentation of my problem.
Map.js
Example.java
ASKER CERTIFIED SOLUTION
Avatar of accordia
accordia

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It works without problems!