balta2ar / brotab

Control your browser's tabs from the command line
MIT License
389 stars 27 forks source link

`bt text` and `bt html` show original text/html without form modifications #47

Open jamespharvey20 opened 3 years ago

jamespharvey20 commented 3 years ago

If I bring up a form like https://www.w3schools.com/html/html_forms.asp, modify the contents of a textbox (add "can i see this" to first name), and run bt text [id] or bt html [id], it shows the original contents of the textbox ("John", not "John can i see this".)

If it's easily possible for brotab to get the current version of the page, it would be nice to have an option to specify returning that instead. I think there's also value in returning the original version, so I wouldn't just change its behavior.

I haven't tested it, but I suspect other changes to the page after loading wouldn't be shown, like a webpage that periodically updates showing new data.