Automating the Script using Foxtrot
Here we are going to automate the script using foxtrot.
Step 1: Open Foxtrot App and make sure to select the Level as Expert in Account setting:
Step 2: Create a New Botflow and click on the Advanced tab in Actions Panel and select Python.
Step 3: A new window should appear where you can select the method as Code and copy-paste the previous script in the Code Box provided.
Or, you can select the method the python file containing the script:
Step 4: To show the output of the above script in Foxtrot, we need to create a variable. Click on the checkbox beside Save to and select the magic button on the right side.
Step 5: A new window should appear called Expression, Select Variables in the Items and click on “+” button top right of the window.
Step 6: Provide a Name and select Type as Text and click OK.
Click OK again and then type the name of the variable in Save To Box. The below Image represents the final state after following the above-mentioned steps.
Click on OK to Run the BOT:
Step 7: To view the Output, Select Variables in the BotFlow and click on the pencil button of the previously selected variable.
The output is the same as we saw before while running the script on Terminal:
This is how we can automate Google Chrome by using Selenium, Python and Foxtrot.
How To Automate Google Chrome Using Foxtrot and Python
In this article, we are going to see how to automate google chrome using Foxtrot & Python.