Katalon Studio Native Popup Window and Upload File


#21

Hello Again @rushantha

1.Step : Please refresh the keyword folder.

2.Step : Open your Test Case page and add a custom keyword from the ADD field.


#22

It’s missing @Keyword before def uploadFile(TestObject tp, String filePath)


#23

Hello @HeleneB

In the custom keyword definition, the relevant phrase exists, has it added? couldn’t tell where missing.


#24

Thanks @emine… you did great help for me… thanks a lot… now it is successfully happening…:grinning::grinning::grinning::+1::+1:


#25

@HeleneB… Thanks .i added it and now it is working prefectly.:grinning::+1:


#26

@rushantha Hello Again
You’re welcome. If there’s something I can help you with, you can send it back.


#27

sure…:+1:


#28

I am also trying this solution , but seems it is not working for me aswell,

GenericActions.uploadFile(findTestObject(‘Object Repository/Banner/applicationNavigator/SZADOCS/Page_Application Navigator/upload_button’),‘C:\Users\shilpi\Upload test.docx’)

upload class–
def static uploadFile(TestObject to, String filePath) {
WebUI.click(to)
StringSelection ss = new StringSelection(filePath)
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null)
Robot robot = new Robot()
robot.keyPress(KeyEvent.VK_ENTER)
robot.keyRelease(KeyEvent.VK_ENTER)
robot.keyPress(KeyEvent.VK_CONTROL)
robot.keyPress(KeyEvent.VK_V)
robot.keyRelease(KeyEvent.VK_V)
robot.keyRelease(KeyEvent.VK_CONTROL)
robot.keyPress(KeyEvent.VK_ENTER)
robot.keyRelease(KeyEvent.VK_ENTER)
}


#29

It is working for me… Sometimes it is getting stuck…but most of the time it is working


(TEST DATA) Define specific Excel Sheets to get Excel Values
#30

Do we need to dd any plugin for this? bcz I hvnt.


#31

I have element which get active on mouse hover.
First I have to hover mouse on element then upload files by click on that.
Three Actions at a time …please guide…
Mouse Hover, click and file upload


#32

Can you please read and try with methods in this topic :slightly_smiling_face:Katalon Studio Native Popup Window and Upload File


#33

Ya I tried, its not working that may be because here I need to perform mouse hover first


#34

fixed, its working now…Thanks guys:)