wtnb75 / selenible

selenium like ansible
https://pypi.org/project/selenible/
MIT License
3 stars 2 forks source link

exampleの充実 #9

Open wtnb75 opened 6 years ago

wtnb75 commented 6 years ago
wtnb75 commented 6 years ago

google translateで翻訳する例

- name: get text
  set:
    input_multiline: "input(ctrl-d): "
  register: src
- name: open google translate
  open: https://translate.google.com/
- name: set input
  sendKeys:
    text: "{{src}}"
    id: source
- name: sleep
  sleep: 1
- name: get output
  save:
    mode: text
    id: result_box
  register: dst
- name: result
  echo: "{{dst}}"
wtnb75 commented 6 years ago