current code: page.locator(…
- User
current code: page.locator( "#s2id_EmaratechSG_Theme_wt789_block_wtFormContent_SmartChannels_Application_CW_wt629_block_WebPatterns_wtcntAppSimpleSecExpandable_block_wtContent_wtContent_wtcmbAddressInsideEmiratesId" ).get_by_role("link", name="-- Select -- ").click() page.locator("li").filter(has_text="DUBAI").click()
wanted code implemetation: order_sent = page.locator("#order-sent") order_sent.wait_for()
convert current code to what i want
- Assistant
Based on your requirement, you're looking for a way to wait for an element to be present or visible on the page before interacting with it. Your current code snippet selects and interacts with dropdown menus and list items directly without waiting. While the target for conversion you've provided seems to focus on waiting for an element (identified by the ID) to appear or become ready on the page.