- vidya shreeRegular Participant
- Posts : 31
Join date : 2013-05-09
Problem in Locating JSP web Page Element in Selenium WebDriver (IE)
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 , 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
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 , 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
- Joffre
- Posts : 5
Join date : 2013-06-03
Age : 36
Re: Problem in Locating JSP web Page Element in Selenium WebDriver (IE)
Mon Jun 03, 2013 8:57 pm
Hi.
Does the logout button/link has an unique ID?
If so, you may use:
Does the logout button/link has an unique ID?
If so, you may use:
- Code:
WebDriver ieDriver = new InternetExplorerDriver();
ieDriver.findElement(By.id(""));
- vidya shreeRegular Participant
- Posts : 31
Join date : 2013-05-09
Re: Problem in Locating JSP web Page Element in Selenium WebDriver (IE)
Tue Jun 04, 2013 12:36 pm
Thanks for ur response Joffre.
I ve tried tis already,but cudnt locate the element yet.
I ve tried tis already,but cudnt locate the element yet.
- mail2prassadAmateur
- Posts : 41
Join date : 2013-06-05
Re: Problem in Locating JSP web Page Element in Selenium WebDriver (IE)
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.
Is the element inside any frame,
What is the error that you are getting. Can you please post the error stack.
Permissions in this forum:
You cannot reply to topics in this forum