If the web page contains usual HTML tags and controls for buttons then just clicking on the button will record click action into the script.

For content using Flash, Silverlight, Java, Flex, Ajax, Shockwave, ActiveX and other modern technologies either “Key+Mouse” or “RIA picture” option under “RIA Recording” on the left pane should be used.