I’m just trying this software and bumped into an issue already.
Created a Test Case which navigates to katalon.com, clicks around a little in ‘Pricing’ and that’s it.
However, there’s this “Need help choosing the right plan?” message that pops up when physically moving the mouse, but otherwise it doesn’t.
(The HTML is
)
Now… I couldn’t find a way to simulate this and make the pop up come up so my script can close it. In other words, my script fails with an error, as when I recorded the events, I actually moved the mouse and had to close this window, but in automation, it doesn’t come.
I COULD remove this line to make the script work, but I want to test if the popup comes on mouse move and I can close it (why not? ).
Again, it’s not “Mouse Over”, I tried that and it doesn’t work.
So, is there a way to make this happen? Move the mouse so the popup appears, so I can close it?
Thanks,
Mark
p.s. Bonus question How about OS-indicated pop ups that block the browser, like security or permission pop ups / notifications?
Okay, you tried mouseOver(), but then did you explore the HTML of the components that arise when you do that. Manually, put your mouse over the target when the popup shows, then right click on the popup and select Inspect (you might have to do this twice to have the HTML move directly to your element). Check if there is now some HTML there that you can interact with.
Maybe like:
"hover over graphic icon"
WebUI.mouseOver(findTestObject('myPage/img_Contacts.ContactName'))
WebUI.delay(1) // increase this to 5 as one of your tests
'to locate pop-up table'
WebElement Table2 = DriverFactory.getWebDriver().findElement(By.xpath("//table[@class='table table-info-popover']/tbody"));
blah blah blah
In my case, the contents was like a web table, however, in another instance, there were a list of items that I could treat as WebElements. Both of these concepts are explained and searchable within the KS forum. See if that gives you something, then update this chain and see if we can help after that.
Ergh. Okay. So you say, the event is not triggered by some JS “code”, reacting to the mouse move, but it it tied to an onscreen object? Because IMO it’s the prior thing.
Plus, my manual guys won’t be able to do this.
So… Plan “B”. Is there a way to add C++ or C# code as an “action” in there? I can move the mouse physically from C++, so all I need is being able to call that code from the Codeless UI (and can share with manual testers to click it together, like inject an action.
So… Plan “B”. Is there a way to add Java or Groovy code as an “action” in there? Yes.
(it shouldn’t be too hard for you to alter your C# code to find the Java or Groovy equivalent.)