mac0S Mojave Version 10.14.3
Firefox 56.0.2 (64-bit) (I'm on an old version to continue supporting image uploads)
Hi,
I'd appreciate if someone could provide some help with a script. I'm encountering an issue with a particular input field and have tried to get round it using multiple different recording methods and script changes.
Here is a screen recording of the script in progress. The particular field that is an issue is the 'Price' field, which is required: http://recordit.co/LFQq4gg1a7
The 'Title' field is also required however I managed to overcome an issue there by using the EVENTS command. Regardless of how I input the data into the 'Price' field, I can't get it to accept that data has been added and not flag the required error as if nothing has been entered. If I manually type a value after the script has finished, it accepts this of course. The data type for that field is a number so it's as if it's recognising the input as text and not validating it.
Unfortunately I can't provide access to the system to test anything as it's behind a login. Here's the current script:
Code: Select all
' Enter product data
SET !DATASOURCE sheet1.csv
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !EXTRACT_TEST_POPUP NO
WAIT SECONDS=1
SET !TIMEOUT_STEP 2
SET !ERRORIGNORE YES
URL GOTO=https://vms-ui-staging.herokuapp.com/manager/orders
TAG POS=1 TYPE=IMG ATTR=SRC:https://vms-ui-staging.herokuapp.com/assets/icons/menu.svg
TAG POS=1 TYPE=BUTTON ATTR=TXT:Add<SP>product
WAIT SECONDS=2
CLICK X=996 Y=251
WAIT SECONDS=2
EVENTS TYPE=KEYPRESS SELECTOR="#control-2" CHARS={{!COL1}}
EVENTS TYPE=KEYPRESS SELECTOR="#control-3" CHARS={{!COL2}}
TAG POS=1 TYPE=EQ-FORM-BTN-RADIO ATTR=TXT:Live
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:NUMBER FORM=ACTION:https://vms-ui-staging.herokuapp.com/manager/catalogue/(modal:vendor/9a2c56c3-6ee0-4248-a9a9-3d8d9a52a96b/product/plain/create) ATTR=ID:control-5 CONTENT={{!COL3}}
WAIT SECONDS=2
EVENT TYPE=MOUSEDOWN SELECTOR="#control-6>DIV>DIV>DIV:nth-of-type(2)>INPUT" BUTTON=0
WAIT SECONDS=1
CLICK X=994 Y=564
EVENT TYPE=CLICK SELECTOR="#control-8>DIV>DIV>DIV:nth-of-type(2)>INPUT" BUTTON=0
WAIT SECONDS=1
CLICK X=808 Y=647
'TAG POS=1 TYPE=BUTTON FORM=ACTION:https://vms-ui-staging.herokuapp.com/manager/catalogue/(modal:vendor/9a2c56c3-6ee0-4248-a9a9-3d8d9a52a96b/product/plain/create) ATTR=TXT:Save
Thanks
Andy