Help with string that contains multiple double quotes

769 views
Skip to first unread message

Paskal Vis

unread,
Dec 30, 2019, 7:18:32 AM12/30/19
to robotframework-users
Hi everyone,

I have a question. I'm using robot framework for automated testing and I'm stuck.
For my automated test i want to fill an XML request with a couple of variables.
Adding the variables in te XML string goes well, but Robot Framework automatically deletes the double quotes in the XML string. 
Because of Robot Framework automatically deleting the double quotes the XML string gets filled in my form without the double quotes which causes an error in the webview I'm using.
Is there any way to let Robot Framework use a String variable with multple double quotes inside the string without deleting them?
I already tried things like putting the double quotes between 2 double quotes ("""). tried using backslash before the double quote(/") but nothing seems to work.



XML.PNG

Hélio Guilherme

unread,
Dec 30, 2019, 7:41:42 AM12/30/19
to robotframework-users
Hi,

I see you are using RIDE. Can you please try Ctrl-Shift-J to edit that XML cell? (this is to test if the spaces still remain escaped, don't save the file is it gets broken)

I think you should replace " by  "


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/aa380166-e26c-4b1f-8f5a-d8e69ae05b80%40googlegroups.com.

Jirayu Kaewprateep

unread,
Dec 30, 2019, 7:08:10 PM12/30/19
to robotframework-users
What platform?

Paskal Vis

unread,
Jan 2, 2020, 2:50:22 AM1/2/20
to robotframework-users
Hi Jirayu,

I'm using RIDE as editor. The tests are running on windows 10 Chrome browser. 

Op dinsdag 31 december 2019 01:08:10 UTC+1 schreef Jirayu Kaewprateep:
What platform?
Reply all
Reply to author
Forward
0 new messages