Trying to get the color WHITE out of the line of code.
<a href="javascript:void(0)" class="itemAttr current" title="WHITE" data- 
value="WHITE"><img src="https://gloimg.rglcdn.com/rosegal/pdm-product- 
pic/Clothing/2019/06/05thumb-img/1559762268621192281.jpg"></a>
I've tried this:
color = driver.find_element_by_xpath("""//p[@id="select-attr- 
 0"]/a[@href="javascript:void(0)"]@title""").click()
I get this error message:
The string '//p[@id="select-attr-0"]/a[@href="javascript:void(0)"]@title' is not a valid XPath expression.
What I want is to get "WHITE".
 
     
     
     
    