How can I make this script faster?

It’s a Script to buy something - Second Question: can I get a one click order on some websites too? So skipping some sites to load

I don’t fully understand the problem, but I hope this helps:

  1. If you want to skip some pages and go directly to a certain page, I usually use WebUI.navigateToUrl('').
  2. I noticed in your log that after opening skinport.com, the next step is an order to click on something. I think it’s best to add a “Wait for page load” action to ensure the page is fully loaded. Based on my experience, if we don’t use a delay or wait for the page to load after navigating, Katalon will execute the next command immediately, even though the page isn’t ready yet

@basti.hb155

The title of this post says “How can I make this script faster?”

But the text of the first post asks “can I get a one click order on some websites too?”

I do not understand what you really want to ask to the forum.

Please edit your post and ask a question more clearly.

Thanks, I edited it

The above code was obviously made by you just clicking away and hoping the software bot was smarter than you. Do you know how to make a pathway to an object? I see a lot of “div/div/div/div” which means you are far away from whatever. I think you need to spend some time learning how to make pathways, either CSS or XPath, and using the functions that allow you to make “better” pathways. The issue I have is that the further you are away from your object, the more “fragile” is the pathway to code change(s).

I totally agree with @alyaraihanah in that you should actually want to have your code stable, rather than “fast”. Sometimes, the code can go faster than your network/browser can handle, so rather than having something that works “fast”, you only have something BROKEN. Instead of looking at “FAST”, look for something that works (and stable). Use waits appropriately and set the “timeOut” value for 5 or 10 seconds (never 0–try to snap your fingers in zero seconds and you will see you FAIL every time…so will your program) and have a nice stable program!

the steps work exactly like wanted but so slow. Otherwise it’s perfect

maybe its just your internet connection then

1 Like