import org.openqa.selenium.Point
// Define the two TestObjects to be swapped
TestObject firstObject = new TestObject("firstObject")
firstObject.addProperty("xpath", ConditionType.EQUALS, "//div[@id='firstObject']")
TestObject secondObject = new TestObject("secondObject")
secondObject.addProperty("xpath", ConditionType.EQUALS, "//div[@id='secondObject']")
// Get the locations of the TestObjects before the swap
Point firstLocationBefore = firstObject.getLocation()
Point secondLocationBefore = secondObject.getLocation()
Eventhough I import necessary package at top: import org.openqa.selenium.Point
But it's still showing underline for getLocation()
in the code.
Why it's showing underline eventhough I import necessary package in Katalon Studio?