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
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=""><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="//"></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

Any idea how to get around this?
(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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 821 Jun-07-2020, 04:42 PM
Last Post: samlee916
  How to click facebook message button JanelleGuthrie 2 525 May-14-2020, 06:02 PM
Last Post: Larz60+
  Question on returning methods in a class menator01 3 473 Feb-03-2020, 07:25 PM
Last Post: menator01
  Contact form button click action Man_from_India 1 684 Feb-01-2020, 06:21 PM
Last Post: snippsat
  HOWTO? Login DSL Modem with Python Requests: need Click "Apply" Button Webtest 4 4,489 Aug-20-2019, 04:03 PM
Last Post: johnmina
  Selenium click on popup button??? GuJu 7 2,840 Jul-20-2019, 09:21 AM
Last Post: Nizam
  How to trigger click event on Button without ID/Name gahhon 7 3,491 Feb-10-2019, 03:06 PM
Last Post: gahhon
  Mechanize and BeautifulSoup read not correct hours vaeVictis 5 1,605 Jan-15-2019, 01:27 PM
Last Post: metulburr
  how to click javascript button hcyeap 3 2,630 Aug-16-2018, 01:26 PM
Last Post: metulburr
  Click a button to get next page ian 7 34,283 Apr-15-2018, 10:05 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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