While using the GitHub website, during the third action I need to click on a dropdown and select Week 1, but I am unable to get its XPath. I have tried all possible methods and also attempted to fetch the XPath of the dropdown arrow, but it still throws an error saying unable to find element.
Hi Kavish,
You can try automating the dropdown selection using the Web GUI Recordfeature, as it helps capture web elements
Additionally, for reference, you may try using the following XPaths:
-
Dropdown button XPath:
//*[@id="_r_1_"] -
Week 1 option XPath:
//li[@class='Box-row p-0 d-flex flex-wrap']/div[2