Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. IMACROS:
  2. VERSION BUILD=8820413 RECORDER=FX
  3. Chrome: Version 52.0.2743.116 m (64-bit)
  4.  
  5. VERSION BUILD=8820413 RECORDER=FX
  6. SET !TIMEOUT_STEP 0
  7.  
  8. '> Change extract_test_popup NO--> YES >For testing only. do not activated unneeded
  9. SET !EXTRACT_TEST_POPUP NO
  10.  
  11. '> SET !SINGLESTEP YES >For testing only. do not activated unneeded
  12. '> SET !ERRORIGNORE YES >For testing only. do not activated unneeded
  13.  
  14. 'Basic setup
  15. TAB T=1
  16. 'Rename website and datasource here.
  17. URL GOTO=https://app.wi.gov/LicenseSearch/
  18. SET !DATASOURCE Testnames.csv
  19. 'Change !loop 1 -> !loop 2 or 3 if your source has headers; sets which line the loop starts at.
  20. SET !LOOP 100
  21. 'no touchy
  22. SET !DATASOURCE_LINE {{!LOOP}}
  23.  
  24. '> This step is made for my datasource and how it's written. Can be commented out if first names are first in your CSV.
  25. '> (On mine they were second, hence the hard-coded reversal)
  26.  
  27. SET COL1 {{!COL2}}
  28. SET COL2 {{!COL1}}
  29. SET !ERRORIGNORE YES
  30. '> This is where the names are entered, the window must be close to maximized - working without error.
  31. EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV>DIV:nth-of-type(2)>DIV>DL>DD>A" BUTTON=0
  32. EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV>DIV:nth-of-type(2)>DIV>DL>DD>FORM>DIV>DIV:nth-of-type(2)>DIV>LABEL>INPUT" BUTTON=0
  33. EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV>DIV:nth-of-type(2)>DIV>DL>DD>FORM>DIV>DIV:nth-of-type(2)>DIV>LABEL>INPUT" CHARS={{COL2}}
  34. EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV>DIV:nth-of-type(2)>DIV>DL>DD>FORM>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>LABEL>INPUT" BUTTON=0
  35. EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV>DIV:nth-of-type(2)>DIV>DL>DD>FORM>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>LABEL>INPUT" CHARS={{COL1}}
  36. EVENT TYPE=CLICK SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV>DIV:nth-of-type(2)>DIV>DL>DD>FORM>DIV>DIV:nth-of-type(4)>DIV>BUTTON" BUTTON=0
  37. '> Record selection happens here *needs fixing*
  38. TAG SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(3)>DIV:nth-of-type(2)>TABLE>TBODY>TR>TD:nth-of-type(3)>A"
  39. 'TAG XPATH="/html/body/div[3]/div[3]/div[2]/table/tbody/tr/td[3]/a"
  40. WAIT SECONDS=5
  41.  
  42. "TAG SELECTOR="HTML>BODY>DIV:nth-of-type(3)>DIV:nth-of-type(3)>DIV:nth-of-type(2)>TABLE>TBODY>TR>TD:nth-of-type(3)>A"
  43. TAG XPATH="/html/body/div[3]/div[3]/div[2]/table/tbody/tr/td[3]/"
  44.  
  45. Aardappel,Audrey
  46. Aasen,Mark
  47. Abban,Cynthia
  48. Abdel-Maguid,Amani
  49. Abdulal,Ghudran
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement