So basically I have a web page, and a couple of HTML buttons on it. On one of them I'd like to perform a mouse click. I know this button's class name, so basically I want to click on it by its class name. I know how to get the class name but I don't know how to click on this element, maybe there is a click function or something I don't know anything about.
var element = document.getElementsByClassName('hidden-xs truncate');
element.Click is not a function
because there is a possibility that there are multiple elements with the class name
you can auto click the button like this:
var element = document.getElementsByClassName("hidden-xs truncate");
note: the  gets the first index of the array, if there are multiple elements with the classes given it will perform a click only on the first element if you did  it would be the second and so forth.