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

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

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.
avatar
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

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

Mon May 27, 2013 10:03 am
Is you application accessible publicly?
avatar
vidya shree
Regular Participant
Regular Participant
Posts : 31
Join date : 2013-05-09

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

Mon May 27, 2013 11:26 am
Nope tarun ..
avatar
14rahul
Posts : 4
Join date : 2012-09-11

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

Mon May 27, 2013 1:14 pm
Used
driver
.switchTo().defaultContent().switchTo().frame("frameName");
avatar
vidya shree
Regular Participant
Regular Participant
Posts : 31
Join date : 2013-05-09

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

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.
Sponsored content

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

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