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
While I started using wdi5, I faced the problem that wdi5 seems to only log errors in every error case (it just creates red console logs), but never raises errors.
For example, when I want to wait for an element or element property to have a certain property.
In my case, I do it in a browser.waitUntil() function. Every time the function is executed, I get this red console log, which is to be expected though, as it can take some time for the property to be set correctly.
Now I can only do two things:
Set all logging for elements to false, which would also prevent logs when an error occurs that I don't expect. (E.g. I used an invalid selector which does not refer to a ui5 control).
set wdi5 logs to silent in general.
In this case, if wdi5 would throw errors, I could catch them and decide in my own code if I want to throw something or not. Or even do additional logging.
Whether these errors should also be output when logging is disabled by selector, I have no preferenz to.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
While I started using wdi5, I faced the problem that wdi5 seems to only log errors in every error case (it just creates red console logs), but never raises errors.
For example, when I want to wait for an element or element property to have a certain property.
In my case, I do it in a browser.waitUntil() function. Every time the function is executed, I get this red console log, which is to be expected though, as it can take some time for the property to be set correctly.
Now I can only do two things:
In this case, if wdi5 would throw errors, I could catch them and decide in my own code if I want to throw something or not. Or even do additional logging.
Whether these errors should also be output when logging is disabled by selector, I have no preferenz to.
Beta Was this translation helpful? Give feedback.
All reactions