Jul-01-2020, 09:22 AM
Hey I am very early at programming but the problem is I am having a lot of trouble while defining functions. This has made my code pages and pages long.
How do I define a function that Searches an element by xpath using selenium?
Element.function?
How do I define a function that Searches an element by xpath using selenium?
def function(self,...): browser.find_element_by_xpath(“”) returnHow do I use it?
Element.function?