bump
This commit is contained in:
@@ -8901,11 +8901,14 @@ func (d *Daemon) runAxeCore(tabID string, options map[string]interface{}, timeou
|
||||
return nil, fmt.Errorf("failed to get page: %v", err)
|
||||
}
|
||||
|
||||
// Check if axe is loaded
|
||||
// Check if axe is loaded, auto-inject if not
|
||||
checkCode := `() => typeof axe !== 'undefined'`
|
||||
checkResult, err := page.Eval(checkCode)
|
||||
if err != nil || !checkResult.Value.Bool() {
|
||||
return nil, fmt.Errorf("axe-core is not loaded - call inject-axe first")
|
||||
d.debugLog("axe-core not loaded, auto-injecting...")
|
||||
if err := d.injectAxeCore(tabID, "", 30); err != nil {
|
||||
return nil, fmt.Errorf("failed to auto-inject axe-core: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Build axe.run() options
|
||||
|
||||
Reference in New Issue
Block a user