I have a website ,in which just wish to click and open a collapse/open window .My condition is only if this button was not open then open it otherwise proceed for next operation. What is the response or key i need to add in selenium python code to do this operation.
May be this will help for more clarity.
Do not Click again this Box as it is already open

The X path of the particular button is /html/body/div1/div/div2/div/san/svg and the code i used for click is
driver.find_element_by_xpath('/html/body/div[1]/div/div[2]/div/san/svg').click()
All i want to do it ,if not previously this is clicked then only click,what parameter or option i need to use in selenium python to do this.
Adding More Details when the Box is Closed this is the "Elements code i see"

