python -m playwright cr http://gitlab.com:1180 --save-storage cway
python -m playwright codegen --target python -o 'login.py' http://gitlab.com:1180/demo001/-/settings/repository#js-push-remote-settings --load-storage cway
locator = page.locator("xpath=//div[@class='form-group js-ssh-host-keys-section collapse']")
locator.click()
page.wait_for_selector(r"xpath=//*[@class='gl-show-field-errors js-mirror-form']/div/div[1]/div[5]/div[1]", state="visible", timeout=5*1000 )
repo_url_ele.dispatch_event('keyup')
# 更多事件参考这个网页
# https://developer.mozilla.org/en-US/docs/Web/API/Event/Event
# 改变该元素为可见
page.eval_on_selector("xpath=//div[@class='form-group js-ssh-host-keys-section collapse']", "el => el.setAttribute('class','form-group js-ssh-host-keys-section collapse show')")