My goal is to use playwright with typescript in order to select a specific html element. The element I am trying to target has the class "ivu-select-dropdown" and a specific style.
<div class="ivu-select-dropdown" style="position: absolute; min-width: 180px; will-change: top, left; transform-origin: center top; top: 135px; left: 339px;" x-placement="bottom-start">
<ul class="ivu-select-not-found" style="display: none;">
<li>No matching data</li>
</ul>
<ul class="ivu-select-dropdown-list">
<li class="ivu-select-item">
<div class="custom-select-item-for-preview">5Cells</div>
</li>
... and other li elements
I have tried referencing the documentation but I am still unsure how to properly utilize the class "ivu-select-dropdown" for targeting this element.
The html structure of the page seems to be dynamic and it may also include the following structure before any actions are taken:
<div class="custom-autocomplete-targets ivu-select ivu-select-single ivu-select-small ivu-form-item-error">
<div tabindex="-1" class="ivu-select-selection"><input type="hidden">
<div class="">
<!---->
<!----> <span class="" style="display: none;"></span> <input type="text" placeholder="Select" autocomplete="off" spellcheck="false" class="ivu-select-input">
<!----> <i class="ivu-icon ivu-icon-ios-arrow-down ivu-select-arrow"></i></div>
</div>
<div class="ivu-select-dropdown" style="display: none; position: absolute; min-width: 180px; will-change: top, left; transform-origin: center top; top: 135px; left: 339px;" x-placement="bottom-start">
<ul class="ivu-select-not-found" style="display: none;">
<li>No matching data</li>
</ul>
<ul class="ivu-select-dropdown-list">
<li class="ivu-select-item">
<div class="custom-select-item-for-preview">5Cells</div>
</li>
... and other li elements