StackOverflowMATLABchat / mlapptools

MATLAB class containing methods for programmatic uifigure modification
http://undocumentedmatlab.com/blog/customizing-uifigures-part-2
MIT License
25 stars 11 forks source link

Added 'uiswitch', 'uitoggleswitch', 'uirockerswitch' to getWebElements() #23

Closed Khlick closed 6 years ago

Khlick commented 6 years ago

I added expressions to existing case in getWebElements() for UISwitch elements.

Description

I added these classes to the case expression in the getWebEleents method. UISwitch elements use <data-tag=#> for unique identifiers like the uipanel, thus I've added the 3 uiswitch class names, {'uiswitch', 'uitoggleswitch', 'uirockerswitch' }to the case expression cell.

Motivation and Context

Prior to adding these classes to the case expression, an incorrect widgetID was retrieved for classes, 'uiswitch', 'uitoggleswitch', 'uirockerswitch'. Now the correct widgetID is retrieved for these UI elements.

How Has This Been Tested?

I have tested this extensively in release 2018a by placing uiswitch elements and getting their widgetID for various purposes. No actual functional parts of code were changed, this just now lets more UI elements be selected through the api. No other code is apparently changed.

Screenshots (if appropriate):

N/A

Types of changes

Checklist: