skip to Main Content

Reactjs – React – Selenium – Testing project – How to get nth element

Using C# I am writing unit tests using Selenium (testing my react front end)...My html is: <article class="company-details-container"> <div class="details-header">...</div> <div class="details-header">...</div> <section class="details-new-section>...</section> <div class="details-header">...</div> <div class="details-header">...</div> <div class="details-header">...</div> </article> Section tag is the contents of each div, when…

VIEW QUESTION

Asp.net – C# Deserializing Dictionary<string, Dictionary<string, List<string>>>

I try to deserialize a json response: var res = await Http.GetAsync("api/endpoint"); var resBody = await res.Content.ReadAsStringAsync(); var listOfDicts = JsonSerializer.Deserialize<List<Dictionary<string, Dictionary<string, List<string>>>>(resBody); This is the json we get from the endpoint: [ { "key":"Activities", "value":{ "Delete":[ "string1", "string2", "string3"…

VIEW QUESTION
Back To Top
Search