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
cventqa
Posts : 1
Join date : 2015-02-05

FF has stopped working Empty FF has stopped working

Fri Feb 06, 2015 12:00 am
Hello,

When we run regression on FF, the FF stopped working randomly. Here is the message on Firefox pop-up window -

Firefox has stopped working

A Problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.

Any idea &\ suggestion? Thank you very much in advance.

Here is our execution environment -
Window 7 on VM
FF version 34
Selenium webdriver- 44

Thanks again!
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

FF has stopped working Empty Re: FF has stopped working

Tue Feb 17, 2015 3:40 pm
Try to use this function when closing the browser
Code:
public  void forceKillApplicationFromProcess(String appName){
      // TODO Auto-generated method stub

      switch (appName) {
      case "firefox":
         try {
            Runtime.getRuntime().exec("taskkill /F /IM firefox.exe");
            Thread.sleep(5000);
            Runtime.getRuntime().exec("taskkill /F /IM plugin-container.exe");
            Runtime.getRuntime().exec("taskkill /F /IM WerFault.exe");
         } catch (IOException | InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
         }
               
               
         break;

      default:
         break;
      }


If it appearing in between , then place a check when this error appeared, close the browser and reopen with same state.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum