class

Easybrawto::Commands::Actions

Inherits Reference < Object

Constructors

new(cdp : CDP::Client)
Source

Instance methods

check_box(selector : String)
Source
clear_field(selector : String)
Source
click_button(target : String)
Source
click_if_exists(target : String)
Source
full_screenshot(url : String, output : String, max_height : Int32 = 15000)
Source
get_attribute(selector : String, attribute : String)
Source
get_value(selector : String)
Source
go_back
Source
go_forward
Source
insert_text(selector : String, value : String)
Source
log(message : String)
Source
press_key(key : String)
Source
reload
Source
run_js(code : String)
Source
scrape_page_to(output_dir : String)

TODO: revisar este método depois

  • adicionar scroll automático antes de capturar (lazy load)
  • melhorar deduplicação de elementos
  • melhorar detecção de CTA
  • adicionar suporte a múltiplos snapshots
Source
screenshot(filename : String)
Source
scroll(direction : String, amount : Int32 = 0)
Source
select_option(selector : String, value : String)
Source
wait_for(selector : String)
Source
wait_for_text(text : String)
Source
wait_load
Source
wait_seconds(seconds : Int32)
Source