Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建以下 WebElement:
WebNonHTMLResource forText: ('This is', Character cr asString, 'a test')
但是,当它显示在浏览器中时,文本将如下所示:
这是一个测验
没有考虑回车。
如果将回车放入 HTML 中,则不会显示为换行符。您需要添加一个分页符标签:
'This is<br>a test'