gui test: refactoring

- gui_elements.py: wait_for_*
- gui_test.py: REST request