Share
Go down
vidya shree
Regular Participant
Regular Participant
Posts : 31
Join date : 2013-05-09

Problem in Locating JSP web Page Element in Selenium WebDriver (IE)

on Fri May 31, 2013 6:12 pm
Hello Everyone,

I am working in Selenium Webdriver. I am facing problem in locating an element,which is jsp web Aplpication (ie .jsp page).Not able to locate even a single element in that page.

For Example:
I have to locate the "Logout" link in that page.I tried by using xpath.
When i inspected the logout link in the source code (i.e by right clicking on that webpage),i cudnt find such element.I got very confused and then after a big research LaughingRazz, i came to know that web page has 2 source codes
(i.e one code got by right click on the top of that page and another one got by right click on the center of that page).

Note :This Application is compatible with IE only and not accessable to public.

Please help me to locate such kind of elements (ie JSP web Elements).

Awaiting for ur response.

Thanks,
Vidya
avatar
Joffre
Posts : 5
Join date : 2013-06-03
Age : 29

Re: Problem in Locating JSP web Page Element in Selenium WebDriver (IE)

on Mon Jun 03, 2013 8:57 pm
Hi.
Does the logout button/link has an unique ID?
If so, you may use:
Code:
WebDriver ieDriver = new InternetExplorerDriver();
ieDriver.findElement(By.id(""));
I'm facing a similar problem, but with Asp.Net, and trying to click a menu-bar.
vidya shree
Regular Participant
Regular Participant
Posts : 31
Join date : 2013-05-09

Re: Problem in Locating JSP web Page Element in Selenium WebDriver (IE)

on Tue Jun 04, 2013 12:36 pm
Thanks for ur response Joffre.

I ve tried tis already,but cudnt locate the element yet.
mail2prassad
Amateur
Amateur
Posts : 41
Join date : 2013-06-05

Re: Problem in Locating JSP web Page Element in Selenium WebDriver (IE)

on Wed Jun 05, 2013 10:08 pm
Does the view source of the webpage display the 'logout' link, try to look at the source.
Is the element inside any frame,
What is the error that you are getting. Can you please post the error stack.
Sponsored content

Re: Problem in Locating JSP web Page Element in Selenium WebDriver (IE)

Back to top
Permissions in this forum:
You cannot reply to topics in this forum