- Введение в Selene
- Быстрый Старт. Исходные условия, зависимости, первые шаги и документация
- Selene в действии
- Задание 1: Selene и CSS
- "Строгие, но хрупкие" или "слабые, но стабильные" локаторы?
- Локаторы, автоматически сгенерированные в инспекторе, или подобранные вручную?
- Когда выносить локаторы в отдельные переменные и/или классы?
- Как найти элемент из списка однотипных элементов по нужному тексту его внутреннего элемента (CSS)?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import random | |
import time | |
def elapsed_time(f): | |
start = time.time() | |
result = f() | |
finish = time.time() | |
return result, finish - start |
Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
An example of using PyWin32 and the win32com library to interact | |
Microsoft Excel from Python. | |
This can be used instead of Visual Basic for Applications (VBA) | |
(c) Michael Papasimeon | |
""" | |
import win32com.client |