The HTML
<button class="RCK Hsu USg adn gn8 L4E kVc iyn S9z Vxj aZc Zr3 hA- Il7 hNT BG7" tabindex="0" type="submit">
<div class="KS5 hs0 mQ8 un8 tkf TB_">
<div class="xuA">
<div class="tBJ dyH iFc sAJ B1n tg7 H2s">Log in</div>
</div>
</div>
</button>
The Code
...
await driver
.findElement(
By.css(
"button.RCK.Hsu.USg.adn.gn8.L4E.kVc.CCY.S9z.Vxj.aZc.Zr3.hA-.Il7.hNT.BG7"
)
)
.click();
...
The Error
NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"button.RCK.Hsu.USg.adn.gn8.L4E.kVc.CCY.S9z.Vxj.aZc.Zr3.hA-.Il7.hNT.BG7"}
The Issue
I am facing a challenge with selecting the button above through Selenium automation. While I have been successful in selecting other elements using xpath and id, I have encountered difficulties with this specific button. Despite trying xpath and css selectors, I have not been able to make it work. Any assistance in resolving this selection issue would be greatly appreciated.