title: Link is not clickable using GeckoDriver and Firefox through Selenium and Java
body: <p>I get an error when trying to open a link via Selenium in: </p>
  
  <ul>
  <li>FireFox V. 73. 0 (64-bit) </li>
  <li>Geckodriver driver version-v0.26. 0</li>
  </ul>
  
  <p>Help me solve the problem</p>
  
  <pre><code>public By searchResultLinktLocator(int searchResult) {
      By searchResultLinktLocator = By.xpath("//li[@data-result-number='" + searchResult + "']" + "//a");
      return searchResultLinktLocator;
  }
  
  public BBCSearchPage openSearchResultLink(int searchResult) {
      actions.click(driver.findElement(searchResultLinktLocator(searchResult))).perform();
      return this; 
  }
  </code></pre>
  
  <p>The link for this function does not open: </p>
  
  <pre><code>searchPage.openSearchResultLink(1);
  </code></pre>
  
  <p>A page that does not open a link: <a href="https://www.bbc.co.uk/search?q=Andersen" rel="nofollow noreferrer">https://www.bbc.co.uk/search?q=Andersen</a></p>
  
  <pre><code>1581606071797   mozrunner::runner   INFO    Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\anduser\\AppData\\Local\\Temp\\rust_mozprofileZpIGZz"
  1581606072297   addons.webextension.doh-rollout@mozilla.org WARN    Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
  1581606072791   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
  1581606072791   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
  1581606072791   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
  1581606072791   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
  JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
  1581606075330   Marionette  INFO    Listening on port 53959
  1581606075570   Marionette  WARN    TLS certificate errors will be ignored for this session
  фев 13, 2020 6:01:15 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  INFO: Detected dialect: W3C
  JavaScript error: https://nav.files.bbci.co.uk/orbit/1b2e292884201dd13064a9204e177864/js/require.min.js, line 1: TypeError: e.slice is not a function
  1581606081548   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  action.dispatch@chrome://marionette/content/action.js:1034:5
  performActions@chrome://marionette/content/listener.js:850:16
  dispatch/&lt;/req&lt;@chrome://marionette/content/listener.js:527:14
  dispatch/&lt;@chrome://marionette/content/listener.js:520:15
  1581606081697   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081712   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081730   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081732   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081734   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081747   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081752   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081753   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081755   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081755   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081863   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081874   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081882   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081886   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081888   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081899   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081931   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  1581606081945   Marionette  WARN    TimedPromise timed out after 0 ms: stacktrace:
  TimedPromise/&lt;@chrome://marionette/content/sync.js:244:13
  TimedPromise@chrome://marionette/content/sync.js:229:10
  Sleep@chrome://marionette/content/sync.js:282:10
  dispatchPause@chrome://marionette/content/action.js:1482:10
  toEvents/&lt;@chrome://marionette/content/action.js:1156:16
  action.dispatchTickActions@chrome://marionette/content/action.js:1060:35
  action.dispatch/chainEvents&lt;@chrome://marionette/content/action.js:1028:20
  JavaScript error: , line 0: uncaught exception: undefined
  </code></pre>