-
Running Selenium Invalid Status code=403 Fix - Eclipse
If running Seleniums Tests in Selenic 2022.2 on Eclipse and encounter the following message: Chrome version installed: 114.0.5735.99 Chrome driver installed: ChromeDriver 114.0.5735.90 This issue occurs with newer versions of Chrome as discussed here: https://github.com/SeleniumHQ/selenium/issues/11750 Selenium 4.8.3 has a…
-
Announcing Parasoft Selenic 2022.2
The latest release of Parasoft Selenic (2022.2) is now available. Parasoft continues to focus on providing support for industry leading tools and technologies to enable users to identify and address testing issues within their environment. Parasoft Selenic now supports the following: * Recommendations and self-healing for…
-
[Updated] Regarding log4j CVE-2021-44228 with Selenic
NIST recently released several Apache's log4j Zero-Day vulnerability cases, a very popular Java library to log messages in Java Applications. * CVE-2021-44228 (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) * Parasoft products released this year (2021) include log4j 2.14.0 library. Parasoft confirms that these releases…
-
Provide your feedback on the roadmap for Parasoft Selenic
We welcome your feedback on future versions of Parasoft Selenic Feel free to submit ideas for the roadmap by accessing the feedback survey https://www.surveymonkey.com/r/Selenic-User-Survey
-
Using Selenium with Firefox Snap (Ubuntu)
Ubuntu now provides Firefox as a Snap package. The WebDriver for Firefox (geckodriver) is not compatible out-of-box. From the release notes: They provide a work around: How do you pass --profile-root to geckodriver from Selenium? It isn't trivial but here's one way to do it: import java.io.File;import…
-
How to Handle CAPTCHA in Selenium Automation?
I understand that CAPTCHAs are meant to prevent automation, but for testing purposes, I need to bypass or handle CAPTCHA in my Selenium script. Is there any way to automate this or perhaps use some manual intervention without disrupting the automation flow?
-
Accessing Data Bank Values in Groovy Script
I have an extension tool test in my scenario that calls a Windows command file (.bat). This is a very simple command that returns the userid of the person logged into the computer. This is put into a databank that I want to pass into the Groovy script to build the file path for a PDF file the web application creates and…
-
How do I change the browser that a JUnit test in Eclipse runs on?
I recorded a web session using the Parasoft Recorder in Chrome and it runs well using Chrome in Eclipse but I would like to run it in Microsoft Edge. Looking at the Parasoft Preferences, I have the Selenium WebDriver location specified for Chrome and it is not required for Edge. Showing the Command Line in the Selenic…
-
Which language are your Selenium test written in?
-
Announcing Parasoft Selenic 2021.1
The latest release of Parasoft Selenic (2021.1) is now available. In this release, we focused on the following areas: * Ability to integrate Selenic with tests run using the Cucumber CLI runner * Ability to integrate Selenic with tests run in parallel using JUnit, TestNG, or Cucumber * Support for new IDE versions o…
-
Need to access application database for test data used in Selenic tests
I have a simple application that is used as a front end for another department's database. We only have read access and cannot create our own test data. What I would like to do is to make a few database queries to retrieve some key values to use in the subsequent tests. Are there examples of this available? Thanks!
-
Using Selenic with Appium
I am happy to share some tips about using Parasoft Selenic with Appium tests for mobile web apps. First, let's look at how to record actions that Selenic can use to automatically generate an Appium test. The Parasoft Recorder extension for the Chrome desktop browser can be used to record actions against a mobile web app.…
-
How to add a new locator to page object model
Page Object Model is an implementation of the Object Repository design pattern that is used to decouple the test logic from the data used by the test. In this pattern the Web pages are represented by classes and various page elements as class member variables, while user interactions with the page are expressed using class…
-
How to run Selenium tests with Selenic java agent and analyzer from IntelliJ IDE
If you are using Eclipse IDE then you can install Selenic directly to your Eclipse as a plugin and leverage all features that Selenic provides, but if you are using other IDE you have to manually create run configurations for Selenic. In this post I will show how to configure IntelliJ. Create a Junit run configuration for…
-
Do I need SOAtest for API testing?
Parasoft Recorder is a Chrome extension which is included in Selenic and enables you to capture UI actions to create Selenium tests. It can also capture API traffic and saves the data in a format that Parasoft SOAtest can use to test. In order to do that, SOAtest connection configuration and SOAtest Web Proxy installation…
-
Testing frames with your Selenium Test
Testing web pages with frames can be tricky and selenium has built in API to help make this easier but it's important to understand the gotchas associated with it. Even with those APIs its good to follow some best practices to make the code easier to follow and maintain. Its easiest to imagine frames on a web page as a…
-
How to debug Selenium Tests created by Parasoft Selenic
Parasoft Selenic makes it easy to record web UI workflows in Chrome and create/run Selenium test scripts in Eclipse, but what if you need to debug those test scripts? The Debug menu in Eclipse will fail the test right away with an IllegalStateException because the path to the Chrome WebDriver was not set. You will not have…
-
How to migrate Parasoft Selenic history data
This is a simple guide to migrate Parasoft Selenic history data to another machine. Currently, Selenic stores analysis history data in /parasoft/recorded_data in user home directory. Simply move the content of recorded_data folder to the new machine under the same directory. For example, if we are migrating to a Linux…
-
Ways to avoid brittle element locators
Website recorders do their very best to select the right element locator as you navigate through the site but in many cases the locators that get recorded are non-ideal and contain dynamic information that would otherwise be too specific for example a brittle xpath. Common examples * IDs that change every time you visit…
-
Managing wait conditions in created tests
As a human, when I use a website, I look around for specific elements then I click on those buttons when they are “ready”. I do this because I am able to see when elements are available to be interacted with in the proper way. In an automated framework it’s a little more difficult for the machine to know when to do things…
-
Challenges with record and playback: Screen Size
Changing screen sizes. This challenge is interesting because there's this modern testing practice that is biting us during automated test creation and that is responsive web. In order to make a website that works for both mobile and desktop, Smart developers create responsive websites that will change the way that they…
-
Challenges with record and playback: Cookies and Sessions
The application was recorded in a particular state, even if you didn’t know it... Many times, things are set in the browser that customize the users experience on a site. There are identifiers that uniquely recognize the user, and affect things on the site such as: * The current Login state * Notifications shown the first…