Run Exported Test


~# install flybird package
~ ➤ npm install -g @owloops/flybird

~# install puppeteer
~ ➤ npm install -g puppeteer

~ ➤ cd owloops-recordings
owloops-recordings # run Owloops scripts exported from Chrome recordings
owloops-recordings flybird DuckDuckGo.json --headless=true

Running DuckDuckGo.json...
┌─────────┬─────────────────────────────────────────────────┐
 (index) │                     Values                      │
├─────────┼─────────────────────────────────────────────────┤
  data
 action                 'set-viewport'
 status                    'running'
 message 'info: Setting viewport width: 790 height: 640'
  time           '2023-01-05T11:51:01.179Z'
└─────────┴─────────────────────────────────────────────────┘

┌─────────┬──────────────────────────────────────────┐
 (index) │                  Values                  │
├─────────┼──────────────────────────────────────────┤
  data
 action                  'goto'
 status                'running'
 message 'info: Loading https://duckduckgo.com/?'
  time        '2023-01-05T11:51:01.183Z'
└─────────┴──────────────────────────────────────────┘
┌─────────┬──────────────────────────────────────────────────┐
 (index) │                      Values                      │
├─────────┼──────────────────────────────────────────────────┤
  data
 action                     'click'
 status                    'running'
 message 'info:  clicking #search_form_input_homepage...'
  time            '2023-01-05T11:51:02.235Z'
└─────────┴──────────────────────────────────────────────────┘
┌─────────┬──────────────────────────────────────────────────────────┐
 (index) │                          Values                          │
├─────────┼──────────────────────────────────────────────────────────┤
  data
 action                         'input'
 status                        'running'
 message 'info: Typing Owloops at #search_form_input_homepage...'
  time                '2023-01-05T11:51:02.317Z'
└─────────┴──────────────────────────────────────────────────────────┘
┌─────────┬─────────────────────────────┐
 (index) │           Values            │
├─────────┼─────────────────────────────┤
  data
 action           'enter'
 status          'running'
 message 'info:  pressing enter key'
  time '2023-01-05T11:51:03.158Z'
└─────────┴─────────────────────────────┘
┌─────────┬──────────────────────────────────────────────────────────┐
 (index) │                          Values                          │
├─────────┼──────────────────────────────────────────────────────────┤
  data
 action                         'click'
 status                        'running'
 message 'info:  clicking [data-testid=result-title-a] > span...'
  time                '2023-01-05T11:51:03.169Z'
└─────────┴──────────────────────────────────────────────────────────┘
┌─────────┬────────────────────────────────────────────────────────────────────────────────┐
 (index) │                                     Values                                     │
├─────────┼────────────────────────────────────────────────────────────────────────────────┤
  data
 action                                    'click'
 status                                   'running'
 message 'info:  clicking xpath///*[@id="__next"]/header/div/nav/div[2]/div[1]/a[1]...'
  time                           '2023-01-05T11:51:04.538Z'
└─────────┴────────────────────────────────────────────────────────────────────────────────┘
┌─────────┬──────────────────────────────┐
 (index) │            Values            │
├─────────┼──────────────────────────────┤
  data
 action         'screenshot'
 status          'running'
 message 'info: Capturing Screenshot'
  time  '2023-01-05T11:51:05.962Z'
└─────────┴──────────────────────────────┘
Finished running DuckDuckGo.json
╔════════════╤═══════════╤═════════════════╤══════════╗
 Title Status File Duration
╟────────────┼───────────┼─────────────────┼──────────╢
 DuckDuckGo  Success DuckDuckGo.json 7387ms
╚════════════╧═══════════╧═════════════════╧══════════╝
owloops-recordings # check the results
owloops-recordings cd flybird-results
flybird-results ls -lt
total 8
-rw-r--r--  1 pgagnidze  staff  2111 Jan  5 15:51 2ba46c76-0d64-4fda-a69d-e8afa5f68aeb.json
flybird-results less 2ba46c76-0d64-4fda-a69d-e8afa5f68aeb.json