Kate
9 years agoContributor
Unable to get attribute value
Here is a piece of my code:
inbox_mails = page.EvaluateXPath("//tr[contains(@id, 'sample_id')]") if not inbox_mails: Log.Error('Could not find emails') else: Log.Message('%s emails found' % str(len(inbox_mails))) mail_ids = [i.getAttribute("id").strip("sample_id") for i in inbox_mails]
My inbox_mails gets appropriate number of items in it.
However, my mail_ids stays empty...
What's wrong with it?
Thanks