Jump to content
Sign in to follow this  

Script Return value to its parent script(selenium).

Recommended Posts


I need some help in here.

I am doing some automation in selenium, which needs use of autoit to handle some task.

My task is :

I have to click a link on Firefox so download dialog box(window popup not browser) will appear and (USE OF AUTOIT START HERE) than i have to open file(file is txt so will open in notepad). Now i have to assert that file has some particular line in that notepad file and have copy that text and send it to my selenium script.  While doing this My Selenium script should wait for the result, or may take input from autoit about that line. If that line is present script should move forward else should fail.

I am have automated upto opening my file in notepad but problem is how to get some return value from autoit (complete line if possible if not atleast some return value lik 0,1,2 etc)  and how to wait in selenium till that value comes.

Can you please help me with this.


Share this post

Link to post
Share on other sites

Not sure if this is the right way of doing it but you could potentially set the Exit code to the value you want. The parent script could then capture that into a variable that calls the child script ?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...