Project

General

Profile

Bug #7681

assertXpathCount() expects a string

Added by Wolfgang Schnerring over 9 years ago. Updated over 9 years ago.

Status:
Fix released
Priority:
Normal (P3)
Category:
-
Target version:
-
Start date:
2010-07-16
Due date:
% Done:

100%

Estimated time:
Keywords:

Description

Currently, you have to s.assertXpathCount('//td', '3') which is rather clumsy.

The underlying reason is that the selenium python client does not convert numbers into int:

    def get_number(self, verb, args):
        # Is there something I need to do here?
        return self.get_string(verb, args)

I've asked upstream how to get a fix in there. If we can't, we probably should work around this in gocept.selenium.

Associated revisions

Revision 76:a5dbc0bbb3dd (diff)
Added by Christian Zagrodnick over 9 years ago

- assertXpathCount now also takes ints (fixes #7681).

History

#1 Updated by Christian Zagrodnick over 9 years ago

  • Assignee changed from Wolfgang Schnerring to Christian Zagrodnick

#2 Updated by Christian Zagrodnick over 9 years ago

  • Status changed from Feedback required to Fix committed
  • % Done changed from 0 to 100

Applied in changeset r115465.

#3 Updated by Wolfgang Schnerring over 9 years ago

  • Status changed from Fix committed to Fix released

gocept.selenium-0.6

Also available in: Atom PDF