The authors behind the resurfaced ZLoader malware have added a feature that was originally present in the Zeus banking trojan that it’s based on, indicating that it’s being…
National Supply Chain Day, which was recently observed on April 29, serves as a dedicated day to recognize the critical…
There’s a natural human desire to avoid threatening scenarios. The irony, of course, is if you hope to attain any semblance…
A lot of new CSS features can help you optimize your code and reduce redundancy. Source: Read MoreÂ
Post Content Source: Read MoreÂ
Have you ever wondered why you visit the bank less or why we now order a product from our device…
Large language models (LLMs) are expanding in usage, posing new cybersecurity risks. These risks emerge from their core traits: heightened…
Free LLM Playgrounds and Their Comparative Analysis As the landscape of AI technology advances, the proliferation of free platforms to…
Neuro-Symbolic Artificial Intelligence (AI) represents an exciting frontier in the field. It merges the robustness of symbolic reasoning with the…
I created a sample Selenium Webdriver test using java and maven and pushed it out to my gitlab repository. Then I created a new pipeline to run the automated tests. This is my first time running a test on the pipeline so I followed some instructions online. The issue I’m having is that the test fails because of this error: (unknown error: DevToolsActivePort file doesn’t exist)
I saw some few questions regarding this too and tried to add those solutions but still getting that error. Used this link where I added those arguments.
WebDriverException: unknown error: DevToolsActivePort file doesn’t exist while trying to initiate Chrome Browser
Not sure what I need to do to fix this error or how to run the test as a non-root user which can maybe be a workaround.
This is my yml file for the pipeline
# calling the docker image where chrome, maven, jdk are available to run the tests
image: markhobson/maven-chrome:jdk-11
# building the maven
build:
stage: build
script:
– mvn compile
# running the tests
test:
stage: test
script:
– mvn clean test
BaseTest class
@BeforeSuite
public void beforeSuite() {
WebDriverManager.chromedriver().setup();
ChromeOptions options = new ChromeOptions();
String runTime = null;
try {
InputStream input = BaseTest.class.getClassLoader().getResourceAsStream(“runSetup.properties”);
Properties properties = new Properties();
properties.load(input);
runTime = properties.getProperty(“runTimeOnLocal”);
} catch (IOException e) {
e.printStackTrace();
}
// if it’s true, that means running locally on my machine and open the webrowser
// if it’s false, that means it’s running on gitlab headless
if(runTime.equalsIgnoreCase(“TRUE”)) {
options.addArguments(“start-maximized”);
options.addArguments(“enable-automation”);
options.addArguments(“–no-sandbox”);
options.addArguments(“–disable-infobars”);
options.addArguments(“–disable-dev-shm-usage”);
options.addArguments(“–disable-browser-side-navigation”);
options.addArguments(“–disable-gpu”);
}
else if(runTime.equalsIgnoreCase(“FALSE”)) {
options.addArguments(“–disable-dev-shm-usage”);
options.addArguments(“–no-sandbox”);
options.addArguments(“–disable-gpu”);
options.setHeadless(true);
}
driver.set(new ChromeDriver(options));
Log.info(“Opening web application”);
driver.get().get(“https://demo.opencart.com/”);
}
I also put the link to my repo as this is a sample for me to review selenium (need to switch to master branch)
SeleniumReview
Faced with expanding attack surfaces and a barrage of threats, businesses of all sizes are increasingly looking to unlock the…
A threat actor has claimed to have leaked the database of the Department of Social Welfare Ladakh, Government of India.…
A former employee of the U.S. National Security Agency (NSA) has been sentenced to nearly 22 years (262 months) in…
Cloudflare Pages is one of my favorite Cloudflare’s platforms. It’s makes deploying static sites and JAMStack applications easy. You will get…
It is tempting to put transitions and animations on every component in the interface; when done right, an animated UI…
In my 25+ years of experience, I have seen firsthand that component technology can offer a huge advantage to the…
Large Language Models (LLMs) signify a revolutionary leap in numerous application domains, facilitating impressive accomplishments in diverse tasks. Yet, their…
Charts have become indispensable tools for visualizing data in information dissemination, business decision-making, and academic research. As the volume of…
The advent of generative artificial intelligence (AI) marks a significant technological leap, enabling the creation of new text, images, videos,…
A tiny, SSR-safe Vue.js directive for binding random data to an element. Continue reading on Vue.js Feed » Source: Read…