In the past I have used selenium 2 and phantomJS with python and there seems to be alot of support out there for that. However I would now like to try this combo using java, has anyone tried this? do I need to use ghostdriver?
Do I need ghostdriver to use selenium and phantomjs in java?
5k Views Asked by Calum At
1
There are 1 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in SELENIUM
- Can't get Selenium element
- Trying to find HREF from table with Selenium in Python
- Python | How i get the link of products that doesn't have href with selenium
- Selenium works only when I'm connected to a remote server
- Logging in automation using Selenium requests / responses- why it wont work?
- Why can't I scrape data from etherscan
- TypeError: 'SwitchTo' object is not callable
- Why driver.get doesn't work in Python Selenium when using Profile
- Trying to fill out an online form using selenium but it can't find the element
- Targeting Accept Policy With Selenium
- Python Selenium - Select Options not returning all the options
- Spraping data from a table is slow but uncertain why
- Unable to convert byte[] image to base64 using cucumber scenario api's - java selenium
- Selenium WebDriver - google account login problem using python
- Click on login button using Selenium
Related Questions in PHANTOMJS
- Could not find an executable /home/ubuntu/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs that matched the requirements '>= 1.8.1', '< 3.0'
- Download file with phantomJS R
- How do i set proxy for the GhostDriver (PhantomJS) at the fly?
- Extract string literal type of an interface's function's arguments
- "html-pdf: Failed to load PhantomJS module. You have to set the path to the PhantomJS binary using 'options.phantomPath'"
- I am using jasmine framework with Phantomjs. getting error while running test case "Expected an identifier but found 'jasmineRequire' instead"
- taking screenshot with RSelenium and phantomjs
- How can I use package RSelenium in a Shiny app hosted on shinyapps.io?
- Facing error in generating the chart using the sample test code mentioned in node-export-server git repository
- PhantomJS only rendering background image
- Why phantomjs does not load HTML page with <script type="module">?
- Cheerio/Phantom scraping not returning page/working as I thought
- How to create PDF from json file created by highcharter export_hc function
- Installing PhantomJS in R
- Rendering chart.js using phantomjs results in ReferenceError: Can't find variable: Chart
Related Questions in GHOSTDRIVER
- How do i set proxy for the GhostDriver (PhantomJS) at the fly?
- Session.desiredCapabilities are ignored by Session.negotiatedCapabilities when running PhantomJSDriver
- PhantomJs GhostDriver not allowing me to click on submit (Grant Access to Box) works with chromewebdriver
- Alternatives to execute a selenium script
- How to run the PhantomJS script from Java-EE application without specification of script full path?
- Cannot get a page source after JavaScript is executed
- How to set Network Preference parameters for headless browser PhantomJS with Python and Selenium
- Unable to launch HtmlUnitdriver through Selenium 3.4.0
- How to properly reload website in a javascript phantomJS context?
- Register phantomjs node to Selenium Grid
- Getting the count of elements in a pop-up using Selenium and Java
- Selenium doesn't take screenshots of PhantomJS' page state
- Is there a trick to using phantomjs for javascript driven sites?
- Unable to handle alert using phantomJS in Java
- PhantomJSDriver "cannot start the driver service on http://localhost:xxxx/"
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The Java binding for GhostDriver is
PhantomJSDriver& that class, plus GhostDriver itself is now part of PhantomJS core as of the 1.9 release. So if you grab that binary (or build from source), you'll already have GhostDriver available.Also, since GhostDriver extends RemoteWebDriver, you could use it via that class directly instead by passing in a URL, if you don't want to use the custom binding.
We've recently switched over to using
PhantomJSDriverin our tests & it was as simple as changing one class & havingphantomjsavailable on the classpath. Taking screenshots too without issue.You can get more info on the Github page for Ghostdriver here. The BaseTest class on the Github repo also gives a good starter for what options you may want to configure for the driver's capabilties (e.g. sensible default SSL settings).