You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Private function figFromWebwindow doesn't work on R2017a #18
Error using arrayfun
matlab.internal.webwindow output type is not supported. Set 'UniformOutput' to false.
Error in mlapptools/figFromWebwindow (line 434)
ww = arrayfun(@mlapptools.getWebWindow, hUIFigs);
Error in mlapptools/waitTillWebwindowLoaded (line 595)
hFig = mlapptools.figFromWebwindow(hWebwindow);
Error in mlapptools.getWebElements (line 140)
mlapptools.waitTillWebwindowLoaded(win);
Error in mlapptools.fontColor (line 69)
[win, ID_struct] = mlapptools.getWebElements(uiElement);
If changing line 434 from: ww = arrayfun(@mlapptools.getWebWindow, hUIFigs);
to ww = arrayfun(@mlapptools.getWebWindow, hUIFigs, 'un',0);
following error occurs:
Error using getappdata
Value must be a handle.
Error in mlapptools/getTimeout (line 488)
to = getappdata(hFig, mlapptools.TAG_TIMEOUT);
Error in mlapptools/waitTillWebwindowLoaded (line 598)
to = mlapptools.getTimeout(hFig);
Error in mlapptools.getWebElements (line 140)
mlapptools.waitTillWebwindowLoaded(win);
Error in mlapptools.fontColor (line 69)
[win, ID_struct] = mlapptools.getWebElements(uiElement);
Steps to Reproduce the Problem
Enter this command in the Matlab Command Line (or any other command from the examples):
@altmany Good point. I have modified the waitTillWebwindowLoaded logic a bit to make getWebElements less likely to fail due to trivial problems; it might help with this issue as well.
Activity
sco1 commentedon Mar 26, 2018
This is likely version specific, the issue does not occur in R2017b.
Dev-iL commentedon Apr 8, 2018
@Proxoso While we're adding a warning or a workaround for older versions, you can use the
setStylesyntax, which should work :[-]Mlapptools doesn't work on R2017a?[/-][+]Private function `figFromWebwindow` doesn't work on R2017a[/+]altmany commentedon Jul 25, 2018
@Dev-iL - if you look at the error stack provided by @Proxoso , you'll see that it stems from
mlapptools.fontColor:69 -which indicates that your suggested workaround will also fail, because
getWebElementsfails.My hunch is that it's due to a slow rendering, which means the timeout is reached before the widgetID is available.
Dev-iL commentedon Jul 25, 2018
@altmany Good point. I have modified the
waitTillWebwindowLoadedlogic a bit to makegetWebElementsless likely to fail due to trivial problems; it might help with this issue as well.