-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with taking screen shots of individual components #62
Comments
@BRawitt00 I normally test the library on Mac OS Mojave. Can you confirm if your colleague is also on Catalina OS as well? Also would you be able to share your testcase with me just so I can confirm there's nothing missing. I was not aware that selenium now comes with the ability to capture element screenshot. The library captures a full page screenshot and crops the element out based on its coordinates. Looks like I can now utilize selenium's API to achieve this instead. I will release a fix tomorrow. That should probably resolve your issue |
@BRawitt00 I investigated this a bit and it looks like capture element screenshot is relatively new and supported only on latest version of browsers.
|
Yes I can confirm my colleague is also on Catalina. My test case code is as follows: Test Screenshot For this test case several of these are user defined key words. They simply perform actions that have many steps to create the files necessary to get to the page where the screen shot will be taken. They are executed correctly and mostly consist of steps like 'Click Element' 'Wait Until Element Is Visible' 'Input Text' 'Click Element' etc. |
No problem. I can try and provide whatever additional information you need. This path, leading finally to my test case, was empty. |
@BRawitt00 I see. Was the test case folder not created either? |
The folder for the test case 'Test_Screenshot' was created and in the path you listed, it was simply empty. |
@BRawitt00 Understood. You're right. The image does not seems to have been saved. I might have to upgrade my OS to Catalina to reproduce this. Could you help me with a couple more information?
|
No exceptions are being thrown anywhere during the Test_Screenshot test case. The laptops we are currently using are distributed by our employer so I believe they are all the same. They are MacBook Pro 15 inch, 2019. |
@BRawitt00 I'm not really sure as to what could be causing this issue. I will try to reproduce this after upgrading to Catalina. |
Cool. Thanks for trying. I'm at a loss myself as to what is causing this. |
Closing this due to inactivity. |
I am unable to capture individual elements with 'Capture Element'. The same element from the same html page can be captured on an associate's machine. Robotframework, robotframework robot-eyes, and selenium are all the same version. I can capture the element when using the selenium library built in 'Capture Element Screenshot' followed by the xpath to the button. I have tested this with numerous elements, all result in blank screenshots.
I cannot give the html to this page as it is confidential, but here are the steps.
'Capture Element css=app-text-file > mat-toolbar > button:nth-child(6)'
The expected behavior is for a screenshot to be taken properly.
I have attached an image of the visual report containing no screenshot.
![image](https://user-images.githubusercontent.com/23226332/90064577-99264b80-dcb0-11ea-9561-d19a735b8759.png)
Thank you.
The text was updated successfully, but these errors were encountered: