How to get Json response by selenium webdriver using Java?
问题 I'm trying to get Json response by selenium webdriver. How to get it as a Json format. Currently what I get is a String format. Here is what I'm trying to get: {"id":377,"text":"Playing Sudoku is fun!"} <pre style="word-wrap: break-word; white-space: pre-wrap;">{"id":377,"text":"Playing Sudoku is fun!"}</pre> Here is my code: import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class GameTestSelenuim { public static void