Skip to content

Tag: webdriver

Handle/Accept cookie pop-up in Selenium

I am trying to ‘accept the cookies’ on the homepage, but my code doesn’t work. I tried to get the new window handles and then identify the subsequent Xpath for the frame and Accept button but it never work. Answer You no need to switch frame in your case, because there is no frame present in…