skip to Main Content

API JSON response: get key value

Below is the response message (JSON) from an API endpoint. I need to parse the JSON response, and I need to retrieve the RequestID key. { "Status":1, "RequestID":"29d2d52c-e8fe-447f-9ee1-15e4624be58f", "Data":[ { "RegNumber":"ASD3948506", "CaseData":{ "CaseResult":{ "Message":"success", "RequestID":"8C15473C0F7771F410928D5D91362B80" }, "ErrorMessageList":[ ] } }]…

VIEW QUESTION

Unable to handle Shadow Element – Javascript

I am trying to print nested shadow element text using below code but no luck. I have tried to use same code throough console windows and its giving me expected text. Code : import org.openqa.selenium.JavascriptException; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import…

VIEW QUESTION

Unable to launch firebase emulators ui

Hello everybody: i can't launch my emulators , firebase init ok , ports ok , the problem seems to come from the ui . Anybody could help me ? (base) jean-charlesdubien@airdejencharles firebase-demo-project % firebase emulators:start i emulators: Starting emulators: auth,…

VIEW QUESTION

Else statement's code is also printing even though if statement is true – Mysql

This is the code: <% try { String enteredOtp = request.getParameter("otps"); String actualOtp = (String) session.getAttribute("OTP"); if (enteredOtp.equals(actualOtp)) { String eemail = (String)session.getAttribute("eemail"); Connection con; Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql","root","12345"); Statement stm = con.createStatement(); String m = "select * from empinfo…

VIEW QUESTION
Back To Top
Search