Use * to indicate the rest of the command is a single string:

  wd 'set browser html *<html>'

See the Parsing section of
https://code.jsoftware.com/wiki/Guides/Window_Driver/Command_Syntax

On Wed, Mar 8, 2023 at 3:11 PM Ed Gottsman <edward.j.gotts...@gmail.com> wrote:
>
> Greetings.  I’m having trouble with the Window Driver's webview control.  I 
> can load a url
>
> wd ‘ set browser url <url>’
>
> …but when I try to  load html
>
> wd ‘set browser html <html>’
>
> …I get…
>
> |<!DOCTYPE : command not found
> : wd
> |   (LF,~wd ::(''"_)'qer')    (13!:8)3
>
> Apparently wd is trying to interpret the html rather than simply passing it 
> to the webview control.  There’s some discussion of delimiters in 
> Guides/Window Driver/Command Syntax but it seems to relate to passing in 
> multiple parameters rather than (say) a single parameter with a wide variety 
> of characters that could be mistaken for delimiters.  I tried to apply it 
> anyway, without success.
>
> Is there a way to delimit a single wd parameter such that it won’t trigger 
> parsing by wd?
>
> Thank you.
>
> Ed
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to