Answered

'message='element not interactable: element has zero size' error for Select element on Cloud Run

Hello, we are getting a 'message='element not interactable: element has zero size' error for a Select element on Cloud Run on Chrome/Firefox; we are unable to reproduce this on local run.

Please see error logs below and test case info..

Execution Set ID - 91544

Test case name - GMII_Search_SmokeTest_T1_T5_NIH

Data Template/Data Sets -
BT3_ProxyAccts, BT3_OLTPSTG_ProxyAcct
 
GM_Credentials, SA_STAGE
 
Failed Step - 88
Failed/Affected element - GMIIRedesign_Search_AdvSearch.Select.FiscalYear
Xpath used - //div/label[@id='fys_label']/../span/div/button[@title='Select']
Current PROOF version - Platform Fermat 9.1.1.1283
Current Chrome version on Cloud VMs- 91
Current Chrome driver on Cloud VMs - 90.0.4430.24
 
 

 

 

 

2021-07-08 08:39:10 [pool-23-thread-1] INFO c.s.p.e.cloud.ExecutionListenerImpl - Step index=86 PASS 1101(ms) [Verify_Element HALT exist GMIIRedesign_Search_AdvSearch.Select.FiscalYear 1 1 off off] message='Element with name GMIIRedesign_Search_AdvSearch.Select.FiscalYear exists on the page'
2021-07-08 08:39:11 [pool-23-thread-1] INFO c.s.p.e.cloud.ExecutionListenerImpl - Step index=87 FAIL 1299(ms) [Click HALT GMIIRedesign_Search_AdvSearch.Select.FiscalYear] message='element not interactable: element has zero size
Driver: Chrome Driver
Driver verison: 90.0.4430.24'
2021-07-08 08:39:12 [pool-23-thread-1] INFO c.s.p.e.cloud.ExecutionListenerImpl - Test execution id=674389 finished. Status='FAIL', Message='Execution failed at step 87. Message element not interactable: element has zero size
Driver: Chrome Driver
Driver verison: 90.0.4430.24'

0
9 comments
Avatar
Joseph Hamdan

Hi Stephen,

Could you please include a screenshot of the element as well as part of the DOM so we can inspect it ?

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Akinpelumia

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Stephen,

Could you please try Scroll_to command to scroll the element before it's clicked?

If Click still fails, please try Execute_Javascript command as below:

1. Insert the below in the command:

arguments[0].click();

2. Click + next to Arguments and select the same locator.

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Akinpelumia

Hi Joseph, I did add a  Scroll_to command prior to the step and that did not help; but the Javascript did!

Thanks so much.

0
Comment actions Permalink
Avatar
Akinpelumia

Hi Joseph, I am having similar issues with the Hover_and_Click command. Is there a Execute_Javascript command that can be a alternative option for this? Thanks.

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Stephen,

Have you tried Hover command, then using Javascript click on this element to click it?

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Akinpelumia

ahhh, i did not try that! Will do so, thanks! Is this a Chrome issue with the Web Driver when it comes to the Click issue.

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Stephen,

Yes, most likely it is a Chrome/Driver issue

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Akinpelumia

ok, thx.

0
Comment actions Permalink

Please sign in to leave a comment.