Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

 

 

Advice

  • Use Chrome's dev tools to test your XPath selectors quickly! 
  • Here's a particularly tricky selector:
    • haha_element = add_reaction_button.find_element_by_xpath('//span[@aria-label="Haha" and '
                                                               'ancestor::div[@aria-label="Reactions"] and '
                                                               'not(ancestor::div[contains(@class,"fb_content")])]')
  • No labels