title: Cannot click to SVG element with selenium
body: <p>this is my full project code please guys run this code and help to me fix this problem
  I have issue in my find_the_place_path() function also you need to add :
  form_data.txt to you folder of project and inside of txt file should be
  Myrat Durdyyew Erkek 26 08 1988 Pasport I-AG 266556
  also you can download my project via link below and run code :
  <a href="https://drive.google.com/file/d/1mlBshD2EHH1Y5k14iYpertF-P25_qCWy/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/1mlBshD2EHH1Y5k14iYpertF-P25_qCWy/view?usp=sharing</a></p>
  <pre><code>from ast import Return, Try
  from asyncio.windows_events import NULL
  from codecs import getencoder
  from distutils.command.sdist import sdist
  from lib2to3.pgen2 import driver
  from operator import and_
  from pickle import TRUE
  from select import select
  import time
  from selenium import webdriver 
  from selenium.webdriver.support.ui import Select
  from selenium.webdriver.remote.webelement import WebElement
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  
  
  
  class Project:
      def __init__(self) -&gt; None:
          self.driver = webdriver.Chrome('chromedriver.exe')
  
      self.main()
  
  
  def find_the_place_path(self):
  
    # firstly I will get the all path tags
    all_place_in_path = self.driver.find_elements_by_tag_name(&quot;path&quot;)
    
    # title of my path tag is &quot;gat: 3&quot;
    for place in all_place_in_path:
      print(place.get_attribute('title'))
      if place.get_attribute('title') == &quot;gat: 3&quot;:
        # this code don't worked for me  
        print(&quot;  Joined in to if  &quot;)
        wait = WebDriverWait(driver, 10)
        wait.until(EC.element_to_be_clickable((By.XPATH, &quot;//*[name()='path'][@title='gat: 3']&quot;))).click()
        break
  
  
  def find_the_place_rect(self ):
  
    all_place_in_rect = self.driver.find_elements_by_tag_name(&quot;rect&quot;)
  
    for place in all_place_in_rect:
      print(place.get_attribute('title'))
      if place.get_attribute('title') == &quot;gat: 1&quot;:
        self.driver.findElement(By.xpath (&quot;//*[local-name()='svg' and @id='45']/*[localname()='path']&quot;));
      if place.get_attribute('title') == &quot;gat: 2&quot;:
        print(&quot;2 A girdim &quot;)
        btn = self.driver.find_element_by_xpath(&quot;//*[local-name()='svg' and @id='45']/*[localname()='path']&quot;)
        btn.click()
        break
      if place.get_attribute('title') == &quot;gat: 3&quot;:
         print(&quot;3 E girdim&quot;)
  
  def input_data(self):
  
    data=open(&quot;form_data.txt&quot;,&quot;r&quot;)
    for line in data:
      count = 0
      data.readline()[count]
      words=line.split()
      print(words)
      if words:
        first_name = words[0]
        last_name = words[1]
        gender = words[2]
        bday = words[3]
        bmoth = words[4]
        byear = words[5]
        document_type = words[6]
        document_snumber = words[7]
        document_number = words[8]
        count += 1
  
      time.sleep(3)
      phone = self.driver.find_element_by_id(&quot;phone&quot;).send_keys('61260799')
      print(phone)
         
      jyns = Select(self.driver.find_element_by_id(&quot;jyns&quot;))
      jyns.select_by_visible_text(gender)
   
      client_last_name = self.driver.find_element_by_id('lastname').send_keys(last_name)
  
      client_name = self.driver.find_element_by_id('name').send_keys(first_name)
  
      buyer_mail = self.driver.find_element_by_id(&quot;email&quot;).send_keys(&quot;welbekowallanur@gmail.com&quot;)
  
      # WebDriverWait(self.driver, 3).until(EC.presence_of_element_located((By.ID, 'passport')))
      
      passport = Select(self.driver.find_element_by_id(&quot;passport&quot;))
      passport.select_by_visible_text(document_type)
  
      WebDriverWait(self.driver, 3).until(EC.presence_of_element_located((By.CLASS_NAME, 'passport_code_b')))
  
      elements = self.driver.find_elements_by_css_selector('div.first &gt; div.slide &gt; div.info_r &gt; div.wrap &gt; ul &gt; li &gt; div &gt; div.passport_code_b &gt; div:nth-child(1)')
      pass_region = elements[0]
  
  
      passport_region = Select(pass_region.find_element_by_id(&quot;passport&quot;))
      passport_region.select_by_visible_text(document_snumber)
  
      passport_code = self.driver.find_element_by_id('code').send_keys(document_number)
  
      day = Select(self.driver.find_element_by_id(&quot;bday&quot;))
      day.select_by_visible_text(bday)
  
      month = Select(self.driver.find_element_by_id(&quot;bmonth&quot;))
      month.select_by_visible_text(bmoth + &quot; - Iýul&quot;)
  
      year = Select(self.driver.find_element_by_id(&quot;byear&quot;))
      year.select_by_visible_text(byear)
      
      try:
        covid = self.driver.find_element_by_id(&quot;kepilnama&quot;).send_keys(&quot;321&quot;)
      except:
         print(&quot;Covid 19 NULL&quot;)
      
      time.sleep(3)
      choose_place_btn = self.driver.find_element_by_xpath(&quot;/html/body/div[4]/div[3]/div[4]/div/button&quot;)
      choose_place_btn.click()
      time.sleep(2)
  
      self.find_the_place_path()
  
      #self.payment()
  
  
  def main(self):
  
      self.driver.get(&quot;https://railway.gov.tm/&quot;)
      self.driver.maximize_window()
  
      select = Select(self.driver.find_element_by_id(&quot;one_way&quot;))
      self.driver.execute_script(&quot;document.getElementById('one_way').style.display = 'block';&quot;)
      from_where =  select.select_by_visible_text(&quot;Aşgabat&quot;)
      #self.driver.execute_script(&quot;document.getElementById('dropdown-content').setAttribute('style', 'display: block');&quot;)
    
      select = Select(self.driver.find_element_by_id(&quot;two_way&quot;))
      self.driver.execute_script(&quot;document.getElementById('two_way').style.display = 'block';&quot;)
  
      to_where = select.select_by_visible_text(&quot;Daşoguz&quot;)
      
      self.driver.execute_script(&quot;document.getElementById('search_date').setAttribute('data-value', '2022-08-09');&quot;)
      time.sleep(1)
  
      btn = self.driver.find_element(by=By.XPATH, value=&quot;/html/body/div[4]/div[2]/div/div/div/div/a&quot;).click()
      time.sleep(2)
      #change_class = self.driver.find_element(by=By.XPATH, value=&quot;/html/body/div[4]/div[3]/div[3]/div/ul/li/div[1]/div[3]/ul/li&quot;)
      #self.driver.execute_script(&quot;arguments[0].setAttribute('class', 'seat_1')&quot;, change_class)
      self.check_ticken()
  
     
  def check_ticken(self):
     
     li = self.driver.find_elements_by_tag_name(&quot;li&quot;)
     for l in li:
        print(l.get_attribute('class'))
        if l.get_attribute(&quot;class&quot;) == &quot;seat_1                                            &quot;:
          print(&quot;1 - nji&quot;)
          seat = self.driver.find_element(by=By.XPATH, value=&quot;/html/body/div[4]/div[3]/div[3]/div/ul/li/div[1]/div[3]/ul/li&quot;).click()
          self.input_data()
          
        if l.get_attribute(&quot;class&quot;) == &quot;seat_                                            &quot;:
          print(&quot;2 - nji&quot;)
          self.main()
          self.driver.refresh()
                  
  
  def payment(self):
  
    card_number = &quot;9931020202020202&quot;
    card_holder = &quot;ALLANUR WELBEKOW&quot;
    cvc = &quot;999&quot;
  
    card_input = self.driver.find_element_by_xpath(&quot;//*[@id='pan_visible']&quot;).send_keys(card_number)
    d_month_select = Select(self.driver.find_element_by_id(&quot;month&quot;))
    d_month_selected = d_month_select.select_by_visible_text(&quot;Июль&quot;)
  
    d_year_select = Select(self.driver.find_element_by_id(&quot;year&quot;))
    d_year_selected =d_month_select.select_by_visible_text(&quot;2035&quot;)
  
    card_holder_fill = self.driver.find_element_by_xpath(&quot;//*[@id='iTEXT']&quot;).send_keys(card_holder)
    cvc_fill = self.driver.find_element_by_xpath(&quot;//*[@id='iCVC']&quot;).send_keys(cvc)
  
  
  if __name__==&quot;__main__&quot;:
      pr = Project()  
  </code></pre>