sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03473
[Bug 799929] Re: print "&lang=" does not print the expected string --- workaround
not a bug
** Changed in: sikuli
Status: New => Invalid
** Converted to question:
https://answers.launchpad.net/sikuli/+question/162179
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/799929
Title:
print "&lang=" does not print the expected string --- workaround
Status in Sikuli:
Invalid
Bug description:
*** workaround ***
see comment #2
use instead:
x = "a string that contains &xxxx; elments (e.g. &lang=)"
print x.replace('&', '&') # & is unicode repr. of & (chr(38))
---------------------------------------------
I am setting a text constant to langtype = "&lang=". This and other text constants are being concatenated to form an html address that I paste into a Chrome address bar. It wasn't working, so I added a print command to see what Sikuli was doing. It is changing this constant to a box character, as if it doesn't understand the constant. I've tried moving the constant to the beginning and end of the text; it doesn't seem to matter.
What's really odd is that I am concatenating a language string so my page loads in a different language each time. I have these languages stored in an array. The first language loads ok, but the second loads the previous language. The print shows me each time that Sikuli is using a box instead of the text.
I'm on Sikuli X-1.0rc2, on a 32bit Windows XP system.
I don't get any errors. The script loads the correct language in the address the first time, but the second time through the loop, I get the first language again.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/799929/+subscriptions
References