Dear All,
I cannot execute test case using katalon. the Chrome browser is not launched.
the chrome version on my laptop is : 119.0.6045.124
the chrome driver version used by katalon studio is : 119.0.6045.105
I have the following issue at the begining : Caused by: org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
So I tried to fix that by going though Project->Seetings->Desired capabilities->WebUI->Chrome and add ----------- binary as a name & “…configuration\resources\drivers\chromedriver_win32\chromedriver.exe” as value
and after I have this one : Caused by: org.openqa.selenium.WebDriverException: unknown error: cannot create temp dir for user data dir
So I tried to fix that by going though Project->Seetings->Desired capabilities->WebUI->Chrome and add ----------- user-data-dir as a name & “C:\Users<username>\chrome_user_data” as a value
But I still have the same exception : Caused by: org.openqa.selenium.WebDriverException: unknown error: cannot create temp dir for user data dir
Can I have some help on that, thanks in advance
2 Likes
This implies that you DID NOT use thew WebUI.openBrowser()
keyword.
This imples that you used a statement WebDriver driver = new ChromeDrivers()
.
Am I right?
If you gonna use the new ChromeDriver()
, then you need to set the system property webdriver.chrome.driver
as the following document describes
For the path, I just change my user name by default name for the forum,
I did not hear about that,
Usually I juste need to have somthing like that to launch chrome browser
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
WebUI.openBrowser(“”)
What is the right way to do it today?
This message implies that you do NOT have Google Chrome browser installed on your machine.
This issues is about the Chrome, not the ChromeDriver.
If you have Chrome installed on the machine, then tell us in which path you installed Chrome. If you installed Chrome in an unusual place, it is likely that Katalon Studio can not find your Chrome.
I have already Katalon on my laptop here : C:\Program Files\Google\Chrome\Application
So does Katalon needs to log something in this folder or some other subfolder suach as Session created or other? and does he need to have admin rights r and all the permessions for the chrome folder where chrome is installed ?
This path look just usual.
I have no more idea.
1 Like
Do you have some info about these questions?
So does Katalon needs to log something in this folder or some other subfolder suach as Session created or other? and does he need to have admin rights r and all the permessions for the chrome folder where chrome is installed ?
@anouar.baghouz1 - Please check and confirm that same code is working for Other browsers.
Please remove desired capabilities that you have added, and update Chrome from Katalon Studio-Tools → Update WebDrivers
and also update your system installed chrome browser. then try again.
Unfortunately I cannot execute the same test case on other browser as well.
I already remove all the capabilities, I have tried with and without them, and still have the exception as I mentioned at the beginning
I already have the right chrome driver and when I tried to updated from Katalon, I get the following error :
[ERROR] Driver for chrome not found (valid browsers chrome|edge|firefox|opera|chromium|iexplorer)
Warning: There are some errors during “Updating web driver…”. The results may not be as expected.
Also, FYI, I got 2 versions of Katalon studio
- List item 8.6.8 & 8.2.5 but the ame exception are noticed.
okay, so your are getting error message during update chrome webdriver from katalon studio.
Download KS V9.0.0 and try to run same script on it.
Thanks, I will try on this last version I get back to you.