Does the scrolling work in Katalon?

@ferrariklersone

Please read the following guidance and understand how to help us help you.

Please understand that you should provide enough information. Let me enumerate:

  1. Please show your Test Case script. At least show the lines where you call WebUI.scrollToElement(TestObject testObject, int timeout)
  2. Possibly you refer to a TestObject as the 1st argument to the scrollToElement(TestObject, …). Please show us how the TestObject is defined, how its locator (XPath expression or CSS Selector) looks like.
  3. If the target URL is public, let us know.
  4. If the target URL is not public, please show us the HTML source code of your target Web page. Please let us know which HTML element you want to locate by your TestObject.
  5. Which HTML element in the web page does your locator (XPath, CSS Selector) actually locate? Can you explain it to us?
  6. If you wonder how to share the HTML, please save the web page into a MHTML (MIME HTML) file using Chrome browser and post it here. In Chrome browser having your target HTML opened, do right click on a page; then in a drop down menu you will see “Save as” menu; you want to choose “Save as” which calls up a dialog where you can select to “save as, Webpage, Single file”; do save it. You will get a file. That’s a MHTML file. With the MHTML file shared here, people in this forum would be able to reproduce your web page on their machine without network connection to the web server. With your web page in hand together with your script and TestObject disclosed, they would be able to understand your problem correctly, and hopefully find some useful advice to you.

I guess that you have never studied the XPath and CSS Selector technology, therefore you do not understand the locators in TestObjects generated by Katalon’s “Web Record” tool; you just rely on the tool expecting the tool to provide you with good TestObjects with correct locators auto-magically.

Unfortunately life is not that easy. The “Web Record” tool generates TestObjects but these are rarely satisfactory. Tools will get you started quickly — it is a great benefit though — and no more. You are supposed to review, refine, rewrite the locators of generated TestObjects manually. In order to do the job, you need to train yourself for HTML/XPath/CSS Selector technology.

I would recommend you to step back, sit tight and read some documents about the basics of XPath and CSS technology. There are a few useful/free articles on the Internet: