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
madan
Posts : 2
Join date : 2011-11-23

Selenium is not identifying iframes Empty Selenium is not identifying iframes

Thu Nov 24, 2011 7:48 pm
Hi,

I am unable to automate elements on some part of the page which is under iframe using selenium. but by using sahi(Automation Testing tool) i am able to automate.
avatar
madan
Posts : 2
Join date : 2011-11-23

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Fri Nov 25, 2011 3:02 pm
Hi,

I am unable to automate elements on some part of the page
which is under iframe using selenium. but by using sahi(Automation
Testing tool) i am able to automate.
avatar
gaveyom
Amateur
Amateur
Posts : 38
Join date : 2011-07-13

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Thu Dec 01, 2011 4:15 pm
yes wat madan is saying is absolutely correct

im also facing same problem, if page containing iframe/ frame then it is not able to identifying the elements, even QTP is also able work correctly but im facing this problem only in selenium

please let me know the solution how to identify the elements in iframe using selenium
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Mon Dec 05, 2011 4:10 pm
I'm not working with iframes, but I found this solution - maybe it will help you.
avatar
gaveyom
Amateur
Amateur
Posts : 38
Join date : 2011-07-13

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Fri Dec 09, 2011 1:22 pm
Hi faramka,

which solution did u find, please post the solution what u have found

thanks in advance
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Fri Dec 09, 2011 3:37 pm
@gaveyom, there is a link under text 'this solution'...
avatar
gaveyom
Amateur
Amateur
Posts : 38
Join date : 2011-07-13

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Fri Dec 09, 2011 4:54 pm
thank you
avatar
gaveyom
Amateur
Amateur
Posts : 38
Join date : 2011-07-13

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Fri Dec 09, 2011 4:59 pm
Hi Faramka/ All,

when im using " selenium.selectFrame("index=0") " getting below error like --- Current window is closed ---


************************************************************

com.thoughtworks.selenium.SeleniumException: Current window is closed
Build info: version: '2.0.0', revision: '12817', time: '2011-07-07 19:13:58'
System info: os.name: 'Windows NT (unknown)', os.arch: 'x86', os.version: '6.1', java.version: '1.5.0_05'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.internal.seleniumemulation.Windows.selectFrame(Windows.java:83)
at org.openqa.selenium.internal.seleniumemulation.SelectFrame.handleSeleneseCommand(SelectFrame.java:31)
at org.openqa.selenium.internal.seleniumemulation.SelectFrame.handleSeleneseCommand(SelectFrame.java:1)
at org.openqa.selenium.internal.seleniumemulation.SeleneseCommand.apply(SeleneseCommand.java:32)
at org.openqa.selenium.internal.seleniumemulation.Timer.run(Timer.java:38)
at org.openqa.selenium.WebDriverCommandProcessor.execute(WebDriverCommandProcessor.java:266)
at org.openqa.selenium.WebDriverCommandProcessor.doCommand(WebDriverCommandProcessor.java:196)
at com.thoughtworks.selenium.DefaultSelenium.selectFrame(DefaultSelenium.java:363)
at Sample_Path.click_Again_Path(Sample_Path.java:206)
at Sample_Path.clickSubReport(Sample_Path.java:172)
at Sample_Path.(Sample_Path.java:89)
at Sample_Path.main(Sample_Path.java:41)
Caused by: org.openqa.selenium.NoSuchFrameException: Current window is closed
Build info: version: '2.0.0', revision: '12817', time: '2011-07-07 19:13:58'
System info: os.name: 'Windows NT (unknown)', os.arch: 'x86', os.version: '6.1', java.version: '1.5.0_05'
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:402)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.frame(RemoteWebDriver.java:570)
at org.openqa.selenium.internal.seleniumemulation.Windows.selectFrame(Windows.java:81)
... 11 more
Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Current window is closed
Build info: version: '2.0.0', revision: '12817', time: '2011-07-07 19:13:58'
System info: os.name: 'Windows NT (unknown)', os.arch: 'x86', os.version: '6.1', java.version: '1.5.0_05'
Driver info: driver.version: unknown
at .(file:///C:/Users/SIVAKU~1/AppData/Local/Temp/anonymous39653webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js -> file:///C:/Users/SIVAKU~1/AppData/Local/Temp/anonymous39653webdriver-profile/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:496)
at .(file:///C:/Users/SIVAKU~1/AppData/Local/Temp/anonymous39653webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:306)
at .(file:///C:/Users/SIVAKU~1/AppData/Local/Temp/anonymous39653webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:320)
at .(file:///C:/Users/SIVAKU~1/AppData/Local/Temp/anonymous39653webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:197)
I: 2--- ID: Menutagname1_TreeView1n2

************************************************************

please let me know y this is getting

thanks in advance
avatar
gaveyom
Amateur
Amateur
Posts : 38
Join date : 2011-07-13

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Thu Dec 22, 2011 5:32 pm
Hi All,

can any one reply to above issue

why this " org.openqa.selenium.NoSuchFrameException: Current window is closed " issue is getting

thanks in advance
avatar
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Sat Jan 21, 2012 4:44 pm
When using webdriver, one has to use commands such as:
driver.switchTo().frame(frame_index)
driver.switchTo().frame(frame_id)
driver.switchTo().frame(frame_object)

Any 3 of the can be used. Generally we use frameID.
FrameID can be captured from source of the page or you can get it from developer

Regards
Ashish
Forselenium training visit;
http://qtpselenium.com/selenium-training
avatar
gaveyom
Amateur
Amateur
Posts : 38
Join date : 2011-07-13

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Sat Jan 21, 2012 10:56 pm
Dear ashish_techie,

i have used switchTo but no use
still im not able to identify the frame elements

1st link it is clicking but when it try to click the 2nd link it is not able to click
kindly let my know y it is unable to click the from 2nd link

thanks in advance
avatar
ABCDEFG
Posts : 1
Join date : 2012-03-15

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Thu Mar 15, 2012 1:11 pm
@faramka/gaveyom

i am facing this problem - i cannot continue without this solution.
i didnt see the link you have mentioned in your posts. can you post it again or reply me

^Best regards
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Thu Mar 15, 2012 2:42 pm
No, I can't post it again, because you can see the link after logging and there is no need to paste it once again.
avatar
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Tue May 29, 2012 2:11 pm
see there can be more than one frame on a page. You have to check whether those elements are on same frame or not.

If they are on same frame then you don't need to switch. But if they are on different frames then you have to switch to that frame.


regards
Ashish Thakur

For selenium training visit www.qtpselenium.com/selenium-training
avatar
Sourav
Active particpant
Active particpant
Posts : 17
Join date : 2012-06-28

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Thu Jun 28, 2012 8:20 pm
Do you have frames under frames? in that case you need to move up and then navigate.
avatar
saleem
Posts : 8
Join date : 2012-06-01

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

Fri Jun 29, 2012 4:32 pm
Take the xpath of the frame.and store it in a webelement.
and use driver.switchTo.frame(webelementname);
Example:


@FindBy(how=How.XPATH,using="//*[@id='canvas_frame']") public static WebElement frameOne;//frame xpath

public void gmailFrame()
{
driver1.switchTo().frame(frameOne);//switch to that frame
Sponsored content

Selenium is not identifying iframes Empty Re: Selenium is not identifying iframes

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