When I compare the two tags I see that the difference is for the class tag.
So if you can read it then you're done
You can do it with Selenium if you like
Step 1: find the XPath
- Get the XPath of the button: for that right open the page in Chrome click on it and select Inspect element
- It will open the html file and right click on the highlighted line and select copy Xpath
- Copy the XPath in NotePad
Now that you have the XPath you can select the button via a Python script and query the attributes
Here is a prototype
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("http://www.youradress.org")#put here the adress of your page
elem = driver.find_elements_by_xpath("//*[@type='submit']")#put here the content you have put in Notepad, ie the XPath
button = driver.find_element_by_id('buttonID') //Or find button by ID.
print(elem.get_attribute("class"))
driver.close()
Hope that helps, if you have question please let me know
I used these links for documentation