How to find element by xxx

Hello, Ive just noticed ${row.find_elements_by_tag_name(‘td’)} is deprecated.
Can anyone give me the new way this works as ive tried ${row.find_element(‘xpath’)} and Im not sure how to get it working ( tried different combinations and other bits I found on the internet but couldnt get any to work)
Many thanks in advance

@Wolfe1 Hi cheers for the help, im having trouble getting to recognise find_element

error message: AttributeError: module ‘selenium.webdriver’ has no attribute ‘find_element’
Code is below:
from selenium.common.exceptions import (
WebDriverException,
NoSuchElementException)
from selenium.webdriver.common.by import By
from selenium import webdriver as driver

class pythontest(object):
ROBOT_LIBRARY_SCOPE = “GLOBAL”

def __init__(self):
    # self.driver =  webdriver.chrome(r"C:\NMSAutomationSuite\NMSAutomationSuite\chromedriver.exe")
    pass 

def find_element_by_tagname(self, elements, tag_type):
    element = driver.find_element(By.TAG_NAME, tag_type)
    return  element

So your “driver” is actually going to be the webdriver running the automation so generally that will be passed in like the example from the tests.

If you for sure just want to use the chrome, Firefox, remote, etc driver then it would be something like this (for chrome):

from selenium.webdriver.chrome.webdriver import WebDriver

driver = WebDriver()
driver.find_element()