extract from HTML a map of options & option names

26 views
Skip to first unread message

Kosh Surname

unread,
Jul 22, 2022, 9:20:21 AM7/22/22
to REST assured
It looks like this is an easy case but still I am struggling with it. And I was not able to find any docs that would explain me how to do it.
As a response I get an HTML with 2 pickers. I need to extract 2 maps of of options & option names. How can I do it?
<html>
  <body>
    <div class="content__controls js-content__controls content__controls_padding-top-15">
      <div class="row">
        <div class="col-md-9 no-left-padding">
          <form enctype="application/x-www-form-urlencoded" method="post" class="form-inline" id="form" action="/Managment/Organizations/AddBinding">
            <div class="col-md-5 no-left-padding">
              <select class="form-control selectpicker" id="organizationId" name="organizationId" data-live-search="true" data-none-results-text="Nothing found">
                <option value="3">1pickerName1</option>
                <option value="12">1pickerName2</option>
                <option value="30">1pickerName3</option>
              </select>
            </div>
            <select class="form-control selectpicker auto-width form-control" id="departmentId" name="departmentId" data-live-search="true" data-none-results-text="Nothing found"">
              <option value="351">2pickerName1</option>
              <option value="394">2pickerName2-</option>

Reply all
Reply to author
Forward
0 new messages