storeText command fails to store full text?


#1

Hello.
I am stuck with storing the text.
See the screenshot:


As you can see, Kantu takes only last symbol of russian text, while SeleniumIDE(2.9.1) takes full text.
Do you have some workarounds for this?
Thanks in forward.


#2

Hmm… this could be a bug. => Do you have a test case for us?

In general Kantu works well with Russian and any other language, as it uses Unicode internally.

As far as workarounds are concerned, you can also extract text with sourceExtract. The difference to storeText is that it works on the raw HTML source code (the one you see when you do a “View page source” in Chrome).


#3

Thanks, i’ll try that Command.

Here is my testcase:

JSON testCase

{
“CreationDate”: “2018-7-19”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://vk.com/letrasdetango”,
“Value”: “”
},
{
“Command”: “storeText”,
“Target”: “//div[@class=‘wall_post_text’ and contains(., “Набережная”)]”,
“Value”: “GLOBAL_text_1”
},
{
“Command”: “echo”,
“Target”: “${GLOBAL_text_1}”,
“Value”: “”
},
{
“Command”: “storeText”,
“Target”: “//div[@class=‘wall_post_text’ and contains(., “Парк им А.Ахматовой”)]”,
“Value”: “GLOBAL_text_2”
},
{
“Command”: “echo”,
“Target”: “${GLOBAL_text_2}”,
“Value”: “”
},
{
“Command”: “storeText”,
“Target”: “//div/div[contains(., ‘Расписание’)]”,
“Value”: “GLOBAL_text_4”
},
{
“Command”: “echo”,
“Target”: “${GLOBAL_text_4}”,
“Value”: “”
},
{
“Command”: “storeText”,
“Target”: “//div[@class=‘wall_post_text’]”,
“Value”: “GLOBAL_text_5”
},
{
“Command”: “echo”,
“Target”: “${GLOBAL_text_5}”,
“Value”: “”
},
{
“Command”: “storeText”,
“Target”: “//div[@class=‘wall_post_text’ and contains(., ‘Парк’)]”,
“Value”: “GLOBAL_text6”
},
{
“Command”: “echo”,
“Target”: “${GLOBAL_text6}”,
“Value”: “”
}
]
}