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
accordiaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Amitkumar PSr. ConsultantCommented:
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".
accordiaAuthor Commented:
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
accordiaAuthor Commented:
The UI map file should be named as user-extensions.js and keep that in the folder where your selenium server.jar is located and that's it!

Good luck!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
accordiaAuthor Commented:
It works without problems!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.