Sign in to follow this  
Followers 0
Souji

Autoit script not identifying pop up window in remote machine

1 post in this topic

Could some one please help me?

I am trying to upload a file by clicking on Browse button and then choosing a file from Browser pop up window.

I tried below code (Which works fine if i run same code in my local machine but in Remote machine Open pop up window is not identifying by autoit script)

WinActivate("........ - Mozilla Firefox");

Local $X=360;

Local $Y=475;

Local $saveFileName=".........xml";

;MsgBox(0,"Args::",$CmdLine[1] & " " & $CmdLine[2] & " " & $CmdLine[3]);

;Local $X = $CmdLine[1];

;Local $Y = $CmdLine[2];

;Local $saveFileName = $CmdLine[3];

;MsgBox(0,"filename",$saveFileName);

MouseClick("left",$X,$Y,1);

WinWait("Open"); //If I run same script using webdriver in remote machine then Open window is

//not identifying and passing filename

MsgBox(0,"currentwindow::",WinGetTitle("Open"));

ControlSetText ("Open","",1148,$saveFileName);

ControlClick("Open","","&Open","left",1);

Thanks

Share this post


Link to post
Share on other sites



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
Sign in to follow this  
Followers 0