I am trying to retrieve these JavaScript values from a web application.
var contestPlayResponse = {
"winningPrizeIndex" : 1,
"playMode" : "NORMAL",
"playerId" : "abc123",
"gameVersion" : "0-1-86",
"gameId" : "blue250k",
"seed" : 99
};
mws.GameModel.setPlayResponse(contestPlayResponse);
mws.GameModel.setGameMode(contestPlayResponse.playMode);
Usually, when starting the game, I manually insert this code using Chrome's development tools.
Is there a way to access these values from Selenium?