Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by vidya shree 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

vidya shree
Regular Participant
Regular Participant

Posts : 31
Join date : 2013-05-09

Back to top Go down

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

Post by Joffre 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.

Joffre

Posts : 5
Join date : 2013-06-03
Age : 28

Back to top Go down

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

Post by vidya shree on Tue Jun 04, 2013 12:36 pm

Thanks for ur response Joffre.

I ve tried tis already,but cudnt locate the element yet.

vidya shree
Regular Participant
Regular Participant

Posts : 31
Join date : 2013-05-09

Back to top Go down

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

Post by mail2prassad 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.

mail2prassad
Amateur
Amateur

Posts : 41
Join date : 2013-06-05

Back to top Go down

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

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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