stevepryde/thirtyfour

How does the library operate on a web page that the user has already opened

fantasyfanwuren opened this issue · 3 comments

I'm a beginner, and there are certain things, like entering passwords, that users prefer to do ahead of time to be safe. Therefore, it is necessary to operate on the page that the user has already opened. I haven't found this part in the documentation yet and am looking for help.

Hey there!
It sounds like you're trying to create a "partially automated" workflow. You could perhaps prompt the user in the command line for the login information, or launch the browser and prompt the user to hit continue once logged in, but in order for selenium to control the browser it needs to be the thing that launched the browser.
Thirtyfour is really just bindings for selenium, so you'll have to write some wrapping code around your thirtyfour code to get the experience you're describing.
If you're really just concerned about the security of information, I would recommend reading about using .env files and strategies for keeping that information out of a repo, like .env.example files.

Also, as much as I love thirtyfour and rust, it's a rather low level approach for what you're describing. You might consider checking out some open source high level RPA tools. One I particularly like is called TagUI, and it has built in functionality for pausing and resuming scripts for user interaction.

thank you,It helps me a lot!