1

I have a simple code which gives a No Such Element Exception intermittently. Sometimes it finds a code,sometimes it is not able to do so. Not sure why winium throws such exception.

Demo Example:

def make_call_from_phone(self,extension):

    self.window.find_element_by_id("DialPad").click()  ##Clicks on dialpad
    self.driver.implicitly_wait(5)
    time.sleep(10)
    self.window.find_element_by_id("DialPadTextBox").send_keys(extension) 
    ##Enters extension
    time.sleep(10)
    self.window.find_element_by_id("DialPadButton").click() ##Clicks on call 
    button
Sayali Waghmare
  • 102
  • 1
  • 1
  • 9
  • Without a demo example, it's hard for anyone to give you a solid answer; the best you might get are generic directions and assumptions why it might be happening. Please provide some source that demonstrates the issue - even with sporadic failures. – Todor Minakov Mar 30 '19 at 05:20
  • Example included above. The last line of code where call button needs to be clicked fails intermittently with exception No Such Element Found. Any suggestions are welcome. Thanks – Sayali Waghmare Apr 01 '19 at 04:44
  • I would check if there is an element with `DialPadButton` Id. – Matas Vaitkevicius Jan 14 '20 at 07:38

0 Answers0