Skip to content
Advertisement

How to click the call drop down using selenium webdriver python?

I am not able to click the call dropdown using xpath or css selector and scrape the phone numbers.Is there any way to do so?

JavaScript

Advertisement

Answer

To click on the element with text as Call associated with the dropdown you have to induce WebDriverWait for the element to be clickable and you can use either of the following solutions:

  • Using CSS_SELECTOR:

    JavaScript
  • Using XPATH:

    JavaScript
  • Note : You have to add the following imports :

    JavaScript
  • Browser Snapshot:

yellowpages

Advertisement