Created
September 17, 2014 02:00
-
-
Save kawakawa/e752241689029bedaa3f to your computer and use it in GitHub Desktop.
Selenium WebDriver でのtextarea要素のText部分を取得する際の改行コート有無について
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//改行コード付きのテキストデータ | |
var textReturnCode = WebDriver.FindElement(By.TagName("textarea")).GetAttribute("value"); | |
//改行コードなしのテキストデータ | |
var textNonReturnCode = WebDriver.FindElement(By.TagName("textarea")).Text; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment