Jump to content

Recommended Posts

Posted

ControlFocus("Open","","Edit1")
ControlSetText("Open","","Edit1","C:\Users\srym\Desktop\FileUpload.txt")
ControlClick("Open","","Button1")

 

This is the AutoIT script written for File upload.

The text highlighted in Red, it is the path of the file that needs to be uploaded.But if want to execute my script in some other machine i need to change this path every time.

So can anyone help me writing this path in generic way so that i dont have to change this path every time running in different machine.

  • 5 years later...
Posted
On 5/11/2016 at 12:26 PM, Sreenivasulu said:

ControlFocus("Open","","Edit1")
ControlSetText("Open","","Edit1","C:\Users\srym\Desktop\FileUpload.txt")
ControlClick("Open","","Button1")

 

This is the AutoIT script written for File upload.

The text highlighted in Red, it is the path of the file that needs to be uploaded.But if want to execute my script in some other machine i need to change this path every time.

So can anyone help me writing this path in generic way so that i dont have to change this path every time running in different machine.

Hi,

did u fix that issue?

 

Posted

Hi 

Merci Luke!,

I tried those macros but it did not work. while i' m executing from jenkins by using slave machines, its not able to find path. i need generic way to find the document which is desired to upload

Posted
7 minutes ago, Berbozy said:

Hi 

Merci Luke!,

I tried those macros but it did not work. while i' m executing from jenkins by using slave machines, its not able to find path. i need generic way to find the document which is desired to upload

Try asking here☺️

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...