Questions tagged as 'python-2.7'

1
answer

selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: {"method": "id", "selector": "// input [contains (@id, [closed]

When using the code: self.browser.find_element_by_id("//input[contains(@id,'seq')]") I get the error message: selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: {"method":"id","selector":"//input[contain...
asked by 24.08.2018 / 20:48
1
answer

How do I stop the For when the range is 5? [closed]

How do I stop the For cycle when it reaches a certain condition? For example, it would be when c is equal to 5. for c in range(1,10): print('a,b,c') if c % 5: break Next, a function will be used, but I'd like to understand the flow...
asked by 15.08.2018 / 22:59