in Education by
We are using Selenium to automate our testing. Recently we have seen the majority of our users using Chrome. So we wanted to know - the pros and cons of using PhantomJS vs Selenium: Is there any real advantage in terms of performance, e.g. time is taken to execute the test cases? When should one prefer PhantomJS over Selenium? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
PhantomJS runs perfectly on the command-line, it is suitable as the first layer of smoke testing, whether as part of development workflow or in a continuous integration server. Selenium targets multiple browsers and hence it is very useful to ensure cross-browser consistency and carry out extensive testing across different operating systems. Running the UI testing only with PhantomJS will not yield the most test coverage. But you can exercise some basic sanity checks before doing the in-depth tests using PhantomJS The line between the two gets slightly blurred with the recent WebDriver support in the latest PhantomJS Now using PhantomJS you can run tests and confirm that there are no serious threats then execute the same tests thoroughly using selenium setup.

Related questions

0 votes
    I see this only in Chrome. The full error message reads: "org.openqa.selenium.WebDriverException: Element is not ... for scrolling. Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    I have a certain element that I can select with Selenium 1. Unfortunately, I need to click the parent element ... upwards with XPath? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I have written tests with Selenium2/WebDriver and want to test if HTTP Request returns an HTTP 403 Forbidden. ... Selenium WebDriver? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    How to open a new tab in the existing Firefox browser using Selenium WebDriver (a.k.a. Selenium 2)? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    In the HTML of a web app, there is the following code What is actually shown on the page is a string displaying ... . Any help? Thanks. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I'm working on a Java Selenium-WebDriver. I added driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); ... a better way? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I am converting my selenium 1 code to selenium 2 and can't find any easy way to select a label in a ... ("//path_to_drop_down"); Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I want to put value using webdriver, This is the command I am using driver.findElement(By.name("name")).sendKeys(" ... way to do so ? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    I am new in software testing and looking to enhance my knowledge. I want to know in detail about: What is ... answer here. Thanks! Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    Could someone tell me whether Selenium is a good career option? Select the correct answer from above options...
asked Jan 6, 2022 in Education by JackTerrance
0 votes
    I'm looking for a nice and simple GUI Toolkit that I can use with MSVC++ 2008. I need something ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    I'm looking for a nice and simple GUI Toolkit that I can use with MSVC++ 2008. I need something ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    I am facing a weird issue, we have developed a BOT which runs on BOT runner(virtual machine). the job ... is much appreciated. Thanks Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    If I have to build an infrastructure stack in the cloud using a tool like Ansible. Is it necessary to have the ... the best to use? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    I want to use Sikuli with PhantomJS.Because web application which we are testing have so many http ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 11, 2022 in Education by JackTerrance
...