Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

» Selenium IDE Verify different Maps (Hybridview, Mapview etc.)
Fri Nov 25, 2016 9:56 pm by DJ87

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Unable to run TestNG Testcase in Eclipse by using Mozilla Browser

View previous topic View next topic Go down

Unable to run TestNG Testcase in Eclipse by using Mozilla Browser

Post by Jeeva patrose on Tue Jun 12, 2012 3:20 pm

Hi,

I am trying to execute Selenium Test case by using Test NG Frame work in Mozilla Firefox and IE Browser. But I am getting below Pop up error: Could you pls help me out on this?

Attaching the Error and also sample code below for more info

An error has occurred in the script on this page

Line: 870

Char :9

Error: Could not App window; is the Pop up Blocker enabled?

Code: 0

file:///C:/Users/JEEVA~1.PAT/AppData/Local/Temp/customProfileDira30b441ae7de4f448b914cd9748a1644/core/scripts/htmlutils.js

Do you want to continue running scripts on this page?

Yes NO






Sample Code:

mport com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.testng.annotations.*;
import static org.testng.Assert.*;
import java.util.regex.Pattern;




public class NewTest extends SeleneseTestNgHelper{
@BeforeClass
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*Firefox C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", "http://book.theautomatedtester.co.uk/");
selenium.start();
selenium.setSpeed("1000");
}


@Test public void testUntitled() throws Exception {
selenium.open("/http://book.theautomatedtester.co.uk");
selenium.click("link=Chapter1");
selenium.waitForPageToLoad("30000");
selenium.select("id=selecttype", "label=Selenium RC");
selenium.click("id=radiobutton");
selenium.click("id=multiplewindow");
selenium.waitForPopUp("popupwindow", "30000");
}
@AfterClass
public void tearDown() throws Exception {
selenium.stop();
}

}

Jeeva patrose

Posts : 8
Join date : 2012-06-01

Back to top Go down

Re: Unable to run TestNG Testcase in Eclipse by using Mozilla Browser

Post by Jeeva patrose on Mon Jun 25, 2012 5:46 pm

Hi,

I got the solution for this query.
Please follow the below query instead of the one used in the above.It works:)

selenium = new DefaultSelenium("localhost", 4444, "*firefoxproxy", "http://book.theautomatedtester.co.uk/");


Regards,
Jeeva

Jeeva patrose

Posts : 8
Join date : 2012-06-01

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