Skip to content
Advertisement

Tag: safari

Why is the get_attribute() function in selenium returning an empty string when inspecting the webpage shows the attribute?

I am trying to grab the src attribute from the video tag from this webpage. This shows where I see the video tag when I am inspecting the image. The XPath for the tag in safari is “//*[@id=”player”]/div[2]/div[4]/video” This is my code: Using .text instead og .get_Attribute also returns an empty string. I have to use safari and not chrome

Advertisement