def get_webelements(self, locator):
"""Returns list of WebElement objects matching locator.
See `introduction` for details about locating elements.
"""
import pdb,sys; pdb.Pdb(stdout=sys.__stdout__).set_trace() # <-- added to src/Selenium2Library/keywords/_element.py
return self._element_find(locator, False, True)
and then use the standard pdb commands. But again this is helpful
for debugging specific issues within libraries, generally on a
single keyword level, but not very helpful if you are trying to
debug a robot test as a whole or across and within multiple
keywords. If you are having issues with a robot test you might
post your problem to the newsgroup. Generally for debugging at the
test level I use the old school technique of logging generally
using the Log To Console keyword. You should also use the loglevel
command line/RIDE run argument to get more information using the
DEBUG value. See the User Guide [1] for more information. So where
normally I would run my test typingCan you please explain me with some example ?
On Sunday, August 21, 2016 at 5:27:03 AM UTC-7, Abdul Rahman Chaudhari wrote:Can any body help me in debugging Robot framework test using pdb or some other third party library which Robot supports. I tried using 'Debug' keyword but its not much useful as we cannot do step into, step over like in other tool.
Please let me known if there is any approach for debugging Robot framework test..
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Ugh
When debugging a library and if the problem is complex enough that simple print statement here and there doesn't solve the problem, I tend to use winpdb[1]. Regardless of the name, it's a OS independent debugger for the Python and works[2] also with Robot Framework.
-Tatu
Send from my mobile
[1] http://winpdb.org
[2] http://winpdb.org/docs/embedded-debugging/
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Hi everyone,
It would be good to have debugging features in RIDE (for high level debugging at keyword level, stepping through keywords...).
Is there any plan to add debug features in RIDE, if anyone is aware of it?
Thanks,
Mukesh
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.