Python Forum
Click on unusual class button using mechanize Ask Question
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click on unusual class button using mechanize Ask Question
#1
So I've been trying to click this button using mechanize/anything else (except selenium - I don't want to use selenium due to it being GUI-based) but haven't found a way using Python.

Here's the HTML code:

<div class="ncss-col-sm-6 pr7-sm pt2-sm pb2-sm ta-sm-r"><a tabindex="0" aria-label="Join or Log In" class="js-log-in small text-color-grey d-sm-ib va-sm-m mr4-sm">Join / Log In</a><a href="http://help-en-us.nike.com/app/home/country/us"><figcaption tabindex="0" aria-label="Help" class="small text-color-grey d-sm-ib va-sm-m mr4-sm">Help</figcaption></a><a href="#" class="js-lang-tunnel"><img class="test-flag d-sm-ib va-sm-m" alt="us" src="//content.nike.com/content/dam/nike/global/country_flags/us_sml.png"></a></div>
I want to click
Join or Log In
, but it's not a usual HTML button to be found with a quick google search.

(Page I'm working on is https://www.nike.com/launch/)

Any idea how to get around this?
Reply
#2
(Feb-17-2018, 07:34 PM)Coto Wrote: I don't want to use selenium due to it being GUI-based
You can use headless to have it in the background, which does not use resources
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cant click button by script at page michael1834 1 994 Dec-08-2023, 04:44 PM
Last Post: SpongeB0B
  Click on a button on web page using Selenium Pavel_47 7 4,564 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  Automating Captcha form submission with Mechanize Dexty 2 3,257 Aug-03-2021, 01:02 PM
Last Post: Dexty
  button click error rafarangel 2 3,082 Feb-11-2021, 08:19 PM
Last Post: buran
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 3,770 Jun-07-2020, 04:42 PM
Last Post: samlee916
  How to click facebook message button JanelleGuthrie 2 2,369 May-14-2020, 06:02 PM
Last Post: Larz60+
  Question on returning methods in a class menator01 3 1,970 Feb-03-2020, 07:25 PM
Last Post: menator01
  Contact form button click action Man_from_India 1 2,744 Feb-01-2020, 06:21 PM
Last Post: snippsat
  HOWTO? Login DSL Modem with Python Requests: need Click "Apply" Button Webtest 4 8,406 Aug-20-2019, 04:03 PM
Last Post: johnmina
  Selenium click on popup button??? GuJu 7 7,724 Jul-20-2019, 09:21 AM
Last Post: Nizam

Forum Jump:

User Panel Messages

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