Prices getter #1
Reference in New Issue
Block a user
Delete Branch "prices-getter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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