BUG KS 7.9 does not recognize WebUI (!)

We are having some problems with Katalon 7.9. Is it possible to rollback ro 7.8? If so, how?

Yes. Download 7.8.2, unzip, run.

What is the issue with 7.9?

He is the response form my co-worker

does not recognize WebUI keywords in scripts any longer

Groovy:Apparent variable ‘WebUI’ was found in a static scope but doesn’t refer to a local variable, static field or class.

IDE does not autocomplete or allow drag and drop for WebI keywords window
it also added or duplicates libraries in import section of keyword classes

it also added or duplicates libraries in import section of keyword classes

i commented these out but cant’ get rid of the final few errors where it is not recognizing WebUI

Your co-worker is mistaken.

Somehow, you’ve broken your code. Rather than trawling through your code here, install 7.8.2 and let me know what happens.

This is said co-worker. Please tell me what you need to see

825 matches in my project. They all work.

Try this simple test:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

WebUI.comment("Does this work?")

This is what I see after the upgrade:

also after the upgrade it added this to the imported libraries list:

import MobileBuiltInKeywords as Mobile
import WSBuiltInKeywords as WS
import WebUiBuiltInKeywords as WebUI

I previously had this line befoer the upgrade
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
Anything that was imported and has “as xxxx” has been truncated

Weird.

Are you using the official release or one of the “rc” releases?

I am using the official release. I accessed About Katalon from the Help menu and was presented with the update dialog.

I just searched for that exact string across my entire project - not found.

We’ll have to call in the devs:

@duyluong @ThanhTo @Jass @huynguyen

The line I had before updating was:
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

after the update there were two lines:
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
and
import WebUiBuiltInKeywords as WebUI

I commented out the short line and added the original line back. But autocomplete for WebUI does not work. Also some of the WebUI keywords (not all) have an error on the line.
Also the problem mentioned where i can no longer drag and drop from the keywords browser appeared

Moving this to bugs category (and changing the title). Keep in mind the devs are in UTC+8 or something like that… be a few hours yet before they’re awake.

Hi @frederic.jones,

Please share your imports script using in v7.8.2 and the imports script changed after opening in v7.9.0 here.

If previously your imports script like this:

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords

import WSBuiltInKeywords as WS
import WebUiBuiltInKeywords as WebUI

please manually change to:

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

Thanks

1 Like

That was the first change I made yesterday. But even after saving the WebUI keywords uses still had the gray underline like they were not recognized.

also when i tried to use a new WebUI keyword it would not autocomplete with the available commands.
This only happened with my keywords.

My test cases seemed ok but i could not add new WebUI keywords and have them recognized.

I am downloading the 7.9 to see if a clean install is behaving differently that an upgrade

It would help a lot if you posted some screenshots of what you’re seeing.

Just so we’re clear…

   ALWAYS download and install SIDE-BY-SIDE.
   NEVER overwrite an old version with a new version.

If you tried to overwrite your old version, THAT might explain some of the weirdness. One of the key changes in 7.9 is a new version of Eclipse IDE - something that gave me a problem to solve.

In addition, if you keep the old version (at least for a while) and you encounter problems, it’s easy to switch back and make comparisons.

Good luck.

Getting same issues mentioned by frederic.jones