Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

Problem in Locating JSP web Page Element in Selenium WebDriver (IE) Empty 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 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
Joffre
Joffre
Posts : 5
Join date : 2013-06-03
Age : 36

Problem in Locating JSP web Page Element in Selenium WebDriver (IE) Empty 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:
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.
avatar
vidya shree
Regular Participant
Regular Participant
Posts : 31
Join date : 2013-05-09

Problem in Locating JSP web Page Element in Selenium WebDriver (IE) Empty 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.
avatar
mail2prassad
Amateur
Amateur
Posts : 41
Join date : 2013-06-05

Problem in Locating JSP web Page Element in Selenium WebDriver (IE) Empty 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.
Sponsored content

Problem in Locating JSP web Page Element in Selenium WebDriver (IE) Empty 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