【发布时间】:2019-09-14 03:07:47
【问题描述】:
我正在编写一个 selenium 脚本,其中 3 个值被获取并存储在 String 中。
String one = "19292";
String two = "Abc";
String three = "def";
我希望它以(一+二+三)的形式发送文本,但它们都带有双引号。所以最终结果应该是"19292""Abc""def"
我该怎么做?
我尝试过使用反斜杠的转义机制,但每当我使用它而不是获取字符串值时,它都会打印文本。 例如:
\"one\" prints "one" rather than "19292"
【问题讨论】:
标签: java selenium selenium-webdriver webdriver double-quotes