Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. QA Testing
  3. Question
QA Testing

How to use Selenium's "get attribute" to extract a profile picture's "src"?

Asked by Dominic Poole Jun 21, 2024 974 views 1 answer
Share

About this question

I am currently engaged in a particular task that is related to testing a web-based application that can allow users to upload a profile picture. As a part of my automation testing by using selenium in Python, I need to verify that after a user uploads a profile picture, the image file format should remain unchanged. 

How can I use the “get attribute” method of selenium in Python for extracting the “src” attribute of the uploaded profile picture element and then check whether the file format matches the expected format or not? 

Your answer

1 Answer

More QA Testing discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest QA Testing Blogs

Guides, tips and career advice on QA Testing from JanBask experts.