cherry pick path_line_edit.py from automatic_gui_testing branch