This article shows general tips to work with a browser.
In the attached file (find at the end of the article), you can find an example on how to build a script for working with the browser. You can download the script and try to run it. Remember to save the Foxtrot Project File to the same location as your other projects, typically in this destination: C:\ProgramData\Foxtrot Suite
- Foxtrot starts by creating a variable, opening the Internet Explorer, and going to a website that has been specified.
- Then Foxtrot uses Question (Actions -> Interaction -> Prompts) to ask the user to choose one of the options. It will save the answer to the “Search Input” variable.
This message will pop up:
- Next steps involve the web page navigation.
At all steps with targeting something on the web page, we set up Rules for the target. It is very important to set up rules for target because based on those rules Foxtrot will find the target.
At step 11 we set up Rules for a link (target on the web page) that Foxtrot should find and click. The link is always included website URL, section, the name of the speaker and name of the speech.
As we don’t know which of the options placed in Question the user will choose, we set up rule – to find text in the target and check left 30 symbols match. Note that we placed the variable here to make this rule universal to any target.
In Rules, there are another 2 options Name and ID. Each object on a web page has its own ID and Name. You can see this information by clicking Details.
- The last step is to delete the variable
Comments
0 comments
Please sign in to leave a comment.