Can we run selenium java code in uipath

Hello,

can we run selenium java code in UiPath
if yes then how , what packages need to install? and what activities need to use to run the code?

help me on same

Hello @Mathkar_kunal,

You can refer this.

How to use Java Selenium in Combination with UiPath - News / Tutorials - UiPath Community Forum

Regards,
Bharat

@Mathkar_kunal,

We can do that but no strait way. If you must do this any way then try approach suggested by @bharat.c but I will suggest to take a look at UiPath Test Suite if you are trying to software testing.

Update:

LLM suggested approach I haven’t tried but worth a try:

  1. If you have an existing Selenium Java project (for example, compiled into a jar), you can execute it externally. One common approach is to:
  • Ensure that the Java Runtime Environment (JRE) is installed on the machine.
  • Use the UiPath “Start Process” activity to call the Java executable with the necessary arguments. For example, you might configure it to run a command like:
    java -jar “C:\Path\To\YourSeleniumJar.jar”
1 Like

according to his post he has added two packages chrome and selenium showed in below image

can you please show me how to add those with ss because i cant see them in my studio

Hi @Mathkar_kunal

You can run java scripts in UiPath
Please make sure below steps
Ensure java is installed including respective libraries
As well put some wait.sleep command in your script to make sure it runs smoothly
In UiPath use start process activity in file name section provide your path to run this script.

Happy automation!

why i cant see start process here in my UiPath

form where i ned to install java packages?from manage package ?if yes then what is the name what are the libraries i need to install?

Hi @Mathkar_kunal

Pls try to use classic activities too
Start process activity is present

Go to activities panel and top click on three dots their u can check the classic

Then you will able to see start process

For java and all - weather check your script is running or not ?
If yes then directly push that file path into your start process in file name then your script will run without any issues.

Hope this works for you!

i cant see classic option in studio for start process activity to enable

anything i need to change? to see classic activities

Hi @Mathkar_kunal

Try to use invoke activity n try if not running let me know

yes but why classic activities are not showing?
my UiPath version is 2025.0.167 sts community

hello,

can you pelase expain this little bit
you might configure it to run a command like:
java -jar “C:\Path\To\YourSeleniumJar.jar”

now i have old activities and start process is there.
i have java executable file.
is anything i need to write in argument as you said and if yes then what?

@Mathkar_kunal

“C:\Path\To\YourSeleniumJar.jar” this is the argument