How about some p_web helper functions like:
p_web.PushButton(string p_btnname)
ex: p_web.Script('document.getElementsByName(''bRefrescarMapa'')[0].click();')
p_web.ShowBusy(string p_left,string p_top)
ex: p_web.Script('$("#_busy").css(''left'',''50%'').css(''top'',''40%'').css(''display'',''flex'');')
p_web.HideBusy()
ex: p_web.Script('$("#_busy").css(''display'',''none'');')