I am using KS 5.7 on Win 7. I recently upgraded from KS 5.3. All my test objects are defined by CSS selectors, but I keep getting:

Unable to click on object 'Object Repository/EntityDetail/Components/button_Exit' (Root cause: org.openqa.selenium.InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression  because of the following error:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string '' is not a valid XPath expression.
1 Like

Please take and show us a screenshot of the definition of the TestObject Object Repository/EntityDetail/Components/button_Exit

This is just one of many objects which started to crush.



You said you recently upgraded Katalon Studio from old 5.3 to 5.7. In between these two versions, there were a few significant design changes around TestObject. I suppose you should do ‘clean build’ from source to binary classes in order to make your project in sync with KS5.7 platform.

How to do ‘clean build’ ? It’s easy. Do as follows.

  1. stop your Katalon Studio
  2. in Windows Explorer, identify the /bin folder
  3. delete the bin folder
  4. restart Katalon Studio
  5. open your project
  6. run test in you project ---- all of Groovy sources will be re-compiled to generate new binaries
1 Like

I think that Katalon Studio 5.7.0 has a bug.

Please see the following post: