I have a website with such class:
<html>
<body><div class="class1" data-ref="data"></div></body>
<html>
I want to use selenium in python 3 to get the data-ref
(i.e. "data").
I know you can get the text using .text
is there something like that for data-ref
?