mirror of
https://github.com/MontFerret/ferret.git
synced 2025-06-23 00:28:10 +02:00
Refactoring/externalized html (#234)
* Externalized HTML drivers * Fixed unit tests * Updated logging * Added support to set default driver * Updated GetIn and SetIn helpers
This commit is contained in:
@ -22,18 +22,12 @@ func NavigateForward(_ context.Context, args ...core.Value) (core.Value, error)
|
||||
return values.False, err
|
||||
}
|
||||
|
||||
err = core.ValidateType(args[0], types.HTMLDocument)
|
||||
doc, err := toDocument(args[0])
|
||||
|
||||
if err != nil {
|
||||
return values.None, err
|
||||
}
|
||||
|
||||
doc, ok := args[0].(values.DHTMLDocument)
|
||||
|
||||
if !ok {
|
||||
return values.False, core.Errors(core.ErrInvalidType, ErrNotDynamic)
|
||||
}
|
||||
|
||||
skip := values.NewInt(1)
|
||||
timeout := values.NewInt(defaultTimeout)
|
||||
|
||||
|
Reference in New Issue
Block a user