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
hj
Posts : 1
Join date : 2012-07-26

driver.switchTo().frame() causes Application to crash Empty driver.switchTo().frame() causes Application to crash

Thu Jul 26, 2012 7:08 pm
Hi,

I am using Selenium 2 and IE7.

There are a lot of iframes present in the application I am testing.
So I am using driver.switchTo().frame() method to switch between iframes.
I also use driver.switchTo().defaultContent() before switching to an iframe.

However in some cases, driver.switchTo().frame() causes the Application to crash.
Below is the error in eclipse:
Problem signature:
Problem Event Name: APPCRASH
Application Name: javaw.exe
Application Version: 6.0.70.6
Application Timestamp: 484e4780
Fault Module Name: IEDriver.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4fdf5b90
Exception Code: c0000005
Exception Offset: 0008a71e
OS Version: 6.0.6001.2.1.0.274.10
Locale ID: 1033
Additional Information 1: 1699
Additional Information 2: 3c7b32a427f0a23d017c01e406809b93
Additional Information 3: 437a
Additional Information 4: 0abbaf052c4358d69b1ef6b054f6ab09

I even tried getting the source of the iframe by, driver.findElement(By.id(iframeID)).getAttribute("src"),
and i am able to get the source of iframe.
I have also tried to introduce wait between switching of iframes but still it gives the same error.
I do not know why it is causing the application to crash as it is working for some cases.

Does anyone have any similar experience or can think of any solution??
avatar
popsha
Amateur
Amateur
Posts : 60
Join date : 2012-04-14

driver.switchTo().frame() causes Application to crash Empty Re: driver.switchTo().frame() causes Application to crash

Fri Jul 27, 2012 2:10 pm
only by showing your snippet could help to find solution. because the order you mentioned is perfectly right.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum