Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Currently possible steps in a platform definition file:
- Click element
- Send keystroke
- Get element list when ID contains
- Send keystroke when attribute of element in element list contains
- Process reCaptchaV2
- Wait until element is invisible
- Switch to new window/tab
- Switch to default window
- Switch to iframe
- Find in source
- Locate image captcha
- Locate text captcha
- Wait
- Example steps of the XenForo platform definition file. Each step can either return "OK" when successful or an error "ERROR: ...."
- 1. Click element
- 2. Get element list when ID contains
- 3. Send keystroke when attribute of element in element list contains
- 4. Send keystroke when attribute of element in element list contains
- 5. Send keystroke when attribute of element in element list contains
- 6. Click element
- 7. Process reCaptchaV2
- 8. Wait until element is invisible
- 9. Click element
- 10. Find in source
- 11. Find in source
- 12. Switch to new window/tab
- 13. Find in source
- 14. Find in source
- When not in the platform defintiion file, where will the code get information about what to do after the execution of each step?
- Example:
- #10 (Find in source) is sucessful, the text we seach for was found, and it shall stop further processing
- #13 (Find in source) is successful, the text we search for was found, and it shall NOT stop further processing but instead retry with new data (username is use for example)
- So when they cannot set in the platform def that #10 shall stop further processing, or that #13 shall retry with new data, where do they set that?
- If they would create settings files for various situations, there must be somehow a reference to the step in the platform definition file, like "What to do when #10 is successful" and such.
- I just cant explain it better, I only hope you know what I mean.
- If not, just give me an idea about how you would do that.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement