Prices getter #1

Merged
senaduka merged 4 commits from prices-getter into master 2018-04-25 11:43:32 +02:00
senaduka commented 2018-04-24 22:56:03 +02:00 (Migrated from gitlab.com)

Created by: GotPPay

Price is hardcoded, reason : event listener is attached to input boxes for width and height from another file. Setting value through getElementById('width').value is not firing those listeners.
Another approach that I tried : simulate key press using phantomJS function, no luck because I couldn't get those fields in focus, not even simulating TAB key.

Possible solutions : simulate mouse click (phantomJS function requires x and y coordinates and that is hard to get for those fields - at least I don't know straight forward way independent of screen resolution ...)

Another one : some coefficients for calculating price are defined in page source, take those numbers, use some method for parameter guessing and calculate price

*Created by: GotPPay* Price is hardcoded, reason : event listener is attached to input boxes for width and height from another file. Setting value through getElementById('width').value is not firing those listeners. Another approach that I tried : simulate key press using phantomJS function, no luck because I couldn't get those fields in focus, not even simulating TAB key. Possible solutions : simulate mouse click (phantomJS function requires x and y coordinates and that is hard to get for those fields - at least I don't know straight forward way independent of screen resolution ...) Another one : some coefficients for calculating price are defined in page source, take those numbers, use some method for parameter guessing and calculate price
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: senaduka/old-bilal-vjezba-golang#1