How to combine automation (Selenium) with a unit testing framework (pytest/unittest in Python, or JUnit in Java)?

a) Utilize Selenium for unit testing exclusively.
b) Use pytest/unittest separately from Selenium.
c) Combine Selenium with a unit testing framework for comprehensive testing.
d) Avoid using unit testing frameworks with Selenium.