Just for your information, when you see code that is underlined by KS, then those variables have an issue; in this case, they are undefined. In other words, KS does not know what they are. In this case, they are undefined because you are missing the appropriate import statement. You can either hit CTRL + SHIFT + O (oh) to add the import statements automatically or add them manually, starting with:
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import org.openqa.selenium.By as By
import org.openqa.selenium.Keys as Keys
import org.openqa.selenium.WebDriver as WebDriver
import org.openqa.selenium.WebElement as WebElement
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory //this is the one you're missing
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable
Dear sir,
With due respect I want to say ’ I love you sir’. Your code just worked nicely.
Sir I need one more thing. In this code I can click one value. What should I do if I want to check many check box at a time and those value will be given from an excel .
All I want sir
I will search the value in the reference search box then the value will be highlighted. Then I will click the check box of highlighted row. And how can I give many value at a time from excel sheet and click the check boxes In that page. That page should not close after one selection.
You should make a loop that cycles through your code as many times as you need, or as many rows you have in your spreadsheet. You can find examples on this forum how to do that. Here is one example:
For this statement , you would have to change it so that your spreadsheet is read instead, such as:
Sir I am little bit confused . Should I change the code.
Then what will be the code. Please can you give the code where I have to bring change in code for many data from excel ?
Sir one thing more the code you have given is worked for debit side only. But as you see there are credit table also and I have to check credit box which have different SL NO.
in this case what should I do
If you have a debit reference number and credit reference number then you will have to search for each number within its respective “area”. Again, take some time and see what you can pick up. Obviously, you should try not to have the debit reference number run through the credit "area’ and vice versa for the credit reference number running through the debit “area” if they don’t need to.
Sir it’s working for both sides properly. Thanks a lot sir.
But when I am give the last debit serial number katalon is taking a lot of time to select that one. Which is a problem.
And still I am unable to find out the way of using excel use. I am trying. Hope will be able by using your given links.
Love you sir’.