how to serach for multiple attributes in xpath selenium python 1

how to serach for multiple attributes in xpath selenium python

//*[@attribute_name1='attribute_value1'][@attribute_name2='attribute_value2]  
"""
for example:
	# This One Is A Youtube Video Clicking Xpath But It's Just An Example
	//button[@class="ytp-fullscreen-button ytp-button"][@title="Full screen (f)"]
"""

Here is what the above code is Doing:
1. It’s finding the element with the class name “ytp-fullscreen-button ytp-button”
2. It’s finding the element with the title “Full screen (f)”
3. It’s finding the button element with the above two attributes

Similar Posts