After clicking on Edit, a new page appears. I want to read a few data from that opened page. I used GET
Value with locator to fetch id value.
Id has 4 values
- New
- Open
- In progress
- Close
where --Select--
is field watermark or placeholder
After clicking on edit, I could see the value of id in UI is 'In progress'
${Id}=Get Value//label[@for='Id']/following-sibling::div/div/div/div[1]
Log To Consoleid ${Id}
console output :-
id -- Select --
I intend to get the correct value 'In progress' from UI. However it is not fetching the correct value, its showing --Select--
.
Element in UI:-
<li class="grid__col-x required" style="display: flex;"> ==$0
::before
<label for="Id">Id</label>
<div class="css-18asa text-input react-select--is-disabled">
<div class="css-g9sas react-select__control react-select__control--is-disabled">
<div class="css-asas react-select__value-container react-select__value-container--has-value">
<div class="css-212wew react-select__single-value react-select__single-value--is-disabled">In Progress</div>
<div class="css-rsyb7x">