Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Not able to locate the inspected Element (FireBug) in the original source code.

View previous topic View next topic Go down

Not able to locate the inspected Element (FireBug) in the original source code.

Post by vidya shree on Fri May 24, 2013 9:14 pm

Hello everyone,

I am working in Selenium Webdriver(Java).My webapplication wont work in anyother browser except IE.So i am using firebug lite (also tried Developer tool) to inspect the elements.

Here is my query:

Not able to locate the inspected element through coding.

For example, i am trying to locate "Logout" link in my Application.
Its class name is say "Logout".

My biggest problem is , i cudnt locate that inspected element in the source code too.
However when I am using Firebug lite to view html I am getting something totally different than when I just right click on the site and view the page source.

i.e if i tried to search "Logout" in the source code, i didnt find any such element.

But when i tried to open the source code as DOM (Page) and tried to locate "Logout" ,its there.

I am very confused how come not able to locate the element (which is visible in the page) in the source code??
And why that element is not in the original source but in DOM ??

How to locate such elements in selenium Webdriver?

Note: I tried to locate that element by xpath too (same error"Unable to locate the element").


please guide me.

Awaiting for ur responses.

Thanks in advance
Vidya.

vidya shree
Regular Participant
Regular Participant

Posts : 31
Join date : 2013-05-09

Back to top Go down

Re: Not able to locate the inspected Element (FireBug) in the original source code.

Post by tarun3kumar on Mon May 27, 2013 10:03 am

Is you application accessible publicly?

_________________
Thanks
Tarun K
Free Selenium Training

tarun3kumar
Master
Master

Posts : 186
Join date : 2012-02-14

http://seleniumtests.com

Back to top Go down

Re: Not able to locate the inspected Element (FireBug) in the original source code.

Post by vidya shree on Mon May 27, 2013 11:26 am

Nope tarun ..

vidya shree
Regular Participant
Regular Participant

Posts : 31
Join date : 2013-05-09

Back to top Go down

Re: Not able to locate the inspected Element (FireBug) in the original source code.

Post by 14rahul on Mon May 27, 2013 1:14 pm

Used
driver
.switchTo().defaultContent().switchTo().frame("frameName");

14rahul

Posts : 4
Join date : 2012-09-11

Back to top Go down

Re: Not able to locate the inspected Element (FireBug) in the original source code.

Post by vidya shree on Tue May 28, 2013 2:15 pm

There is no frame issues(I guess)...i cudnt find the frame name in the view source code even logout link itself.

vidya shree
Regular Participant
Regular Participant

Posts : 31
Join date : 2013-05-09

Back to top Go down

Re: Not able to locate the inspected Element (FireBug) in the original source code.

Post by Sponsored content Today at 3:23 am


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