Stale Element Reference Exception

Here is the code I’m using to select a particular option:

    GlobalVariable.new\_account\_name + '.*', true)```

  

It appears that the selection is working, and in fact the console produces this message:

  

\`\`\`Option at index '2' with labelText 'ZZZ KATALON TEST 10 (Wine) - 29' is selected  using regular expression\`\`\`  

  

This is indeed  the <option> I want to select, however, the console continues with the following error:  

  

```Unable to select option by label 'ZZZ KATALON TEST 10.*' of object 'Object Repository/Add\_License\_2/Page\_eCompli Beverage Compliance On/select\_--Demo Beer (Beer) - 11'  using regular expression (Root cause: org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document  
  (Session info: chrome=69.0.3497.100)  
  (Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)  
Command duration or timeout: 0 milliseconds  
For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale\_element\_reference.html  
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'  
System info: host: 'COMPLI-LT021', ip: '192.168.3.103', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'  
...  
09-26-2018 01:28:03 PM - \[END\]    - End action : selectOptionByLabel```  

  
I'm about at my wit's end trying to debug this staleElementReferenceException. Please Help!

i think someone run in similar problem on this forum:


in meantime you should try to regain that element again as described here:
https://docs.seleniumhq.org/exceptions/stale_element_reference.jsp