Easybrawto::Commands::Actions
Inherits Reference < Object
Constructors
new(cdp : CDP::Client)
SourceInstance methods
check_box(selector : String)
Sourceclear_field(selector : String)
Sourceclick_button(target : String)
Sourceclick_if_exists(target : String)
Sourcefull_screenshot(url : String, output : String, max_height : Int32 = 15000)
Sourceget_attribute(selector : String, attribute : String)
Sourceget_value(selector : String)
Sourcego_back
Sourcego_forward
Sourceinsert_text(selector : String, value : String)
Sourcelog(message : String)
Sourcepress_key(key : String)
Sourcereload
Sourcerun_js(code : String)
Sourcescrape_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
screenshot(filename : String)
Sourcescroll(direction : String, amount : Int32 = 0)
Sourceselect_option(selector : String, value : String)
Sourcewait_for(selector : String)
Sourcewait_for_text(text : String)
Sourcewait_load
Sourcewait_seconds(seconds : Int32)
Source