Pass ads in selenium

  • So I am making a selenium config , the problem is the element (button) I need to click on doesn't appear in the xpath unless I click on any place in page then new tab with ad is opened , then I can find the button xpath and click it .

    The problem is i I can't click on any place on page ? And I can't find any element xpath to use it

Log in to reply