mcp iframe updates
This commit is contained in:
3
main.go
3
main.go
@@ -116,6 +116,7 @@ func main() {
|
||||
// switch-iframe flags
|
||||
switchIframeTabID := switchIframeCmd.String("tab", "", "Tab ID to switch iframe context in (optional, uses current tab if not specified)")
|
||||
switchIframeSelector := switchIframeCmd.String("selector", "", "CSS selector for the iframe element")
|
||||
switchIframeTimeout := switchIframeCmd.Int("timeout", 5, "Timeout in seconds for iframe switching")
|
||||
switchIframeHost := switchIframeCmd.String("host", "localhost", "Daemon host")
|
||||
switchIframePort := switchIframeCmd.Int("port", 8989, "Daemon port")
|
||||
|
||||
@@ -366,7 +367,7 @@ func main() {
|
||||
c := client.NewClient(*switchIframeHost, *switchIframePort)
|
||||
|
||||
// Switch to iframe
|
||||
err := c.SwitchToIframe(*switchIframeTabID, *switchIframeSelector)
|
||||
err := c.SwitchToIframe(*switchIframeTabID, *switchIframeSelector, *switchIframeTimeout)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user