code: func (p *WebPage) SetSettings(settings WebPageSettings) error {
  	req := map[string]interface{}{
  		"ref": p.ref.id,
  		"settings": webPageSettingsJSON{
  			JavascriptEnabled:             settings.JavascriptEnabled,
  			LoadImages:                    settings.LoadImages,
  			LocalToRemoteURLAccessEnabled: settings.LocalToRemoteURLAccessEnabled,
  			UserAgent:                     settings.UserAgent,
  			Username:                      settings.Username,
  			Password:                      settings.Password,
  			XSSAuditingEnabled:            settings.XSSAuditingEnabled,
  			WebSecurityEnabled:            settings.WebSecurityEnabled,
  			ResourceTimeout:               int(settings.ResourceTimeout / time.Millisecond),
  		},
  	}
  	return p.ref.process.doJSON("POST", "/webpage/SetSettings", req, nil)
  }
docs: // SetSettings sets various settings on the web page.
  //
  // The settings apply only during the initial call to the page.open function.
  // Subsequent modification of the settings object will not have any impact.