The Selenium script is running in the Chrome browser, but it fails in PhantomJS. How do you run it in the PhantomJS browser?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

Yes. It happens because phantomjs rendering engine is different than chrome engine so scripts fail a lot, you have to fix it for phantomjs, keep printing logs of steps you are making and check where it is breaking in phantomjs then apply other solution to it.
Comments

Selenium Trainer

PhantomJs is headless browser which is mainly used during continuous Integration. You cannot see the execution of the scripts as like other browsers (chrome,IE,FF etc). Its some what difficult to debug the error in phantomjs execution. :(
Comments

Related Questions

To start learning Selenium, how well do I have to know or be familiar with Java?
Hi Uday, You need to have good knowledge on how to basic code in Corr Java and then you can easily learn as the time passes.
Profile Photo
Uday
0 0
View Comments6
Which language is demand now for Selenium: Python or Java?
Most of the companies are using JAVA compared to python for Selenium to automate web applications.
Profile Photo
Pradeep
0 0
View Comments6
What is selenium grid used for?
Selenium Grid is an essential tool for anyone looking to run tests on multiple browsers and operating systems efficiently. It allows you to perform distributed testing, parallel execution, and...
Profile Photo
Praveen
0 0
View Comments5
What is the best way to learn selenium testing? N start career in automation testing?
For learning Selenium testing , Prepare for Core Java later learn Selenium WebDriver.
Profile Photo
Deepak
what is pop handling ?
using windowhandles() you can do popup handling with selenium webdriver
Profile Photo
Vishal

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Selenium Web Driver commonly used method
Navigation Loading a web page in a current browser window driver.get("www.google.com") driver.navigate().to("www.google.com") driver.navigate().to("www.google.com") Move back & forward Driver.Navigate().Back() Driver.Navigate().Forward() Refresh...
S

Sam

1 0
View Comments0

Selenium Interview Question and answers
https://www.youtube.com/watch?v=YWdAh3gTc6c
B

Bhanu P.

0 0
View Comments0

Commonly occurred exceptions you know in WebDriver
WebDriverException NoAlertPresentException NoSuchWindowException NoSuchElementException TimeoutException
Profile Photo

Advanced Selenium Course
Advanced Selenium with Cucumber: Introduction: Overview of Selenium Advantages of Selenium The Selenium Suite Introduction to Selenium IDE Selenium Remote Control Selenium Grid The architecture...
Profile Photo

Example of DependsOnMethod in TestNG
public class dependsonM { @Test public void login() { System.out.println("login"); } @Test (dependsOnMethods = {"login"}) public void email() { //Intentionally I am failing this testcase Assert.assertTrue(false);...
S

Sarthak C.

0 0
View Comments0

Recommended Articles

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for Selenium Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you