How to launch safari and browse a url

As the title, how can i do?
Now i can launch safari by click the screen, but i don’t know how to input and browse a url

Jim, it depends on your OS but you could send the shortcut key to select the URL by sending the corresponding key combination using TypeText. Then you can issue another TypeText command to send through the URL followed by a return.

TypeText CommandKey, “l”
TypeText “”, return

would that work for you?

thanks very much ,i would have a try