Posts

Showing posts from February 4, 2019

Access to the camera from the system the application is running on

Image
0 1 I am building a web application with django and opencv for computer vision. In the web application there exists a button which when pressed starts the web cam of my computer. The problem is when i host the web application using my IP and access the application with a different computer and press the button, The webcam in my computer start. I knew the problem lied in this line of code cam = cv2.VideoCapture(0) I looked online and found this post , which asks me to use javascript to access the webcam. Is that the best option available or can I somehow change that line of opencv code to access the camera in the system the application is running on? If there is no better way to do it than javascript, then I would also like to know once I access the webcam and display the feed onto the screen, how do I l...

「ショッパーズ」を作成中

This page is only for reference, If you need detailed information, please check here

Requesting name and/or id for better Selenium testability

Image
7 2 I'm testing an application using Cucumber + Java + Selenium and I'm seeing that, most of the type, elements don't have a name, nor an id. This is the case for almost every component on the page but, more importantly, it's the case for clickable elements which make life harder for me (since I can't do a findElement(By.id(myId)) and have to be creative with my use of XPath). I'm thinking about asking the dev to add an id or a name to every clickable element and to not clickable element that changes depending on what you have entered before. Question Am I abusing my powers here? If not, what argument can I use to make them see that it's a valid request? automated-testing browser-automation ...