Python Forum
Click in the (…) icon in youtube with selenium PyChrome
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click in the (…) icon in youtube with selenium PyChrome
#7
Have to do it another way when inspection copy fails.
<button is="paper-icon-button-light" id="button" class="dropdown-trigger style-scope ytd-menu-renderer" aria-label="More actions">
aria-label is an attribute that can be selected with @(Selects attributes).
So as example the CSS class attribute would be:
//button[@class="dropdown-trigger style-scope ytd-menu-renderer"]
But as several buttons that has same name of class and id,there is aria-label="More actions" attribute that is unique to only that button.
Reply


Messages In This Thread
RE: Click in the (…) icon in youtube with selenium PyChrome - by snippsat - Oct-19-2017, 02:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Click on a button on web page using Selenium Pavel_47 7 7,416 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 5,082 Jun-07-2020, 04:42 PM
Last Post: samlee916
  Hyperlink Click is not working in Selenium webdriver rajeev1729 0 2,542 May-02-2020, 11:21 AM
Last Post: rajeev1729
  selenium click in iframe fails 3Pinter 6 7,789 Apr-29-2020, 12:59 PM
Last Post: Larz60+
  Python Selenium .click() Loads Error - Works Manually.- Events not Triggered NSearch 24 19,682 Aug-14-2019, 02:23 PM
Last Post: NSearch
  Selenium click on popup button??? GuJu 7 12,970 Jul-20-2019, 09:21 AM
Last Post: Nizam
  Click Element if displayed using Selenium and Python giaco__mar 1 4,629 Dec-27-2018, 06:19 PM
Last Post: metulburr
  Click an icon on a browser cheeks13 2 4,446 Aug-09-2018, 01:14 PM
Last Post: cheeks13
  Selenium xpath finding gif to click fyec 1 4,786 Jul-27-2018, 05:20 PM
Last Post: snippsat
  Selenium chromedriver and click action Gilles95 4 14,937 Feb-07-2018, 07:28 PM
Last Post: Gilles95

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020