I am trying to locate an element that has the following line in the chrome inspect code, <href="app/arp/home/profile">.
My line is:
driver.find_element(By.xpath("//a[@href='/app/arp/home/profile']")).click()
But I get the following error:
AttributeError: type object 'By' has no attribute 'xpath'
What is wrong?