Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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


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