Unable to click an span element attached with ng-click event

1,135 views
Skip to first unread message

santosh b s

unread,
May 17, 2017, 5:02:52 AM5/17/17
to robotframework-users
Hello,

I am a new to Robot Framework and developing a POC. I encountered a strange scenario where I can locate element using xpath (in Firebug), but when I try to click the element using Click Element event in Robot Framework, I am getting the message ElementNotInteractableException: Message:


I am using the same XPath in the robot framework too. This element doesn't have any id or unique identifier associated with it.

Screenshots from Robot Framework




Any pointers on resolving this issue would be of great help. If similar issue is already discussed, could anyone point me to that?

Regards,
Santosh B S
Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3

Hélio Guilherme

unread,
May 17, 2017, 6:52:52 AM5/17/17
to robotframework-users
This type of problem is usually the element not having focus.
When we interact with browser, we move the mouse pointer to the element and then click.
Look for keywords like `Focus` or `Mouse Over` to gain focus of the element.

My Favorite Open Source Projects
awsome-lists gretl robotframework
(sponsored/patrocinado) Recomendo servidores e alojamento Web em:
http://www.proalojamento.pt/

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

santosh b s

unread,
May 17, 2017, 7:25:22 PM5/17/17
to robotframework-users
Hi,

Thank you for the inputs.

I tried Focus, Mouse Over and Simulate events. No Luck!!!. Still getting the same problem.


-- Santosh B S


On Wednesday, 17 May 2017 20:52:52 UTC+10, Hélio Guilherme wrote:
This type of problem is usually the element not having focus.
When we interact with browser, we move the mouse pointer to the element and then click.
Look for keywords like `Focus` or `Mouse Over` to gain focus of the element.

My Favorite Open Source Projects
awsome-lists gretl robotframework
(sponsored/patrocinado) Recomendo servidores e alojamento Web em:
http://www.proalojamento.pt/

On Wed, May 17, 2017 at 7:23 AM, santosh b s <bs.sa...@gmail.com> wrote:
Hello,

I am a new to Robot Framework and developing a POC. I encountered a strange scenario where I can locate element using xpath (in Firebug), but when I try to click the element using Click Element event in Robot Framework, I am getting the message ElementNotInteractableException: Message:


I am using the same XPath in the robot framework too. This element doesn't have any id or unique identifier associated with it.

Screenshots from Robot Framework




Any pointers on resolving this issue would be of great help. If similar issue is already discussed, could anyone point me to that?

Regards,
Santosh B S

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

santosh b s

unread,
May 17, 2017, 7:39:51 PM5/17/17
to robotframework-users
Hello,

Finally I am able to click on desired element using below sequence.


Now I have a new challenge. Upon successful processing, application downloads the files. How to handle the download popup which appears in FireFox browser? I am getting popup as below,


Any help would be great.

-- Santosh B S
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Tatu Aalto

unread,
May 18, 2017, 1:28:58 AM5/18/17
to bs.sa...@gmail.com, robotframework-users
Ugh

The best option is not to download the file. If I need to check that download works and I don't care about the file content, then I don't download the file. I usually skip that part totally and leave it for manual testing or check from the server content management system that file is available for download.

If I actually care about the file content, then I download the file. But I don't usually use the browser to download the file, instead I usually use cURL for the file download. I know that it's possible to configure the browser to automatically download the file to a predefined location, but I haven't personally used that option.

-Tatu
Send from my mobile

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.

Michael

unread,
May 23, 2017, 4:44:55 AM5/23/17
to robotframework-users, bs.sa...@gmail.com
Hi Santosh,

You can fiddle with your firefox profile. I think you have these two options, both are based on a custom firefox profile disabling the popup box:

1. Save and use a custom a profile, e.g. see http://toolsqa.com/selenium-webdriver/custom-firefox-profile.
or
2. Manipulate the firefox preferences to not show the popup, but directly save the file. Take a look at https://stackoverflow.com/questions/33198814/how-to-set-preferences-for-firefox-in-robot-framework.

In both cases you can load the profile with the 'Open Browser' keyword like "Open Browser  ${url}  ff_profile_dir=${profile_path}".


Best,
Michael

Reply all
Reply to author
Forward
0 new messages