Skip to content

Comments

[Features] alternative selectors#6

Draft
thien0291 wants to merge 4 commits intomainfrom
features/alternative-selectors
Draft

[Features] alternative selectors#6
thien0291 wants to merge 4 commits intomainfrom
features/alternative-selectors

Conversation

@thien0291
Copy link
Contributor

Description

Add alternative selector in case we can not find the best selector.

nodes:
  508a05c7-6d98-4dd9-acef-2bded2b98392:
    id: 508a05c7-6d98-4dd9-acef-2bded2b98392
    position:
      x: 0
      y: 0
    type: visitNode
    description: Load "chrome-extension://hdfkejecijfimippfbbbagmibkkcbdmo/popup.html?tabId=238137786"
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      url: chrome-extension://hdfkejecijfimippfbbbagmibkkcbdmo/popup.html?tabId=238137786
    outPorts: {}
    data: {}

  f99feef3-e519-4fe2-aa28-47b5650bf73e:
    id: f99feef3-e519-4fe2-aa28-47b5650bf73e
    position:
      x: 0
      y: 0
    type: buttonNode
    description: Click on <img> .snA7b1LN img
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      field: '.snA7b1LN img'
      alternative_selectors: 
        - '[src="/images/logo-chrismas.svg"]'
    outPorts: {}
    data: {}

  f75b1a61-1bea-44d8-8eca-493b12c16ae6:
    id: f75b1a61-1bea-44d8-8eca-493b12c16ae6
    position:
      x: 0
      y: 0
    type: buttonNode
    description: Click on <div> .slick-slide:nth-child(1) .ant-skeleton-image
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      field: '.slick-slide:nth-child(1) .ant-skeleton-image'
      alternative_selectors: 
        - '[data-index="0"] [class="ant-skeleton-image L4CqMaeO"]'
    outPorts: {}
    data: {}

  914a6793-bb2a-432d-8b39-0b5c6fcac979:
    id: 914a6793-bb2a-432d-8b39-0b5c6fcac979
    position:
      x: 0
      y: 0
    type: buttonNode
    description: Click on <img> [alt="product-\1ED0ng lu\1ED3n d\E2y \111i\1EC7n d\1EA1ng xo\1EAFn"]
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      field: '[alt="product-\1ED0ng lu\1ED3n d\E2y \111i\1EC7n d\1EA1ng xo\1EAFn"]'
      alternative_selectors: 
        - '.KU0dg0_4:nth-child(1) .slick-slide:nth-child(2) img:nth-child(1)'
        - '[alt="product-\1ED0ng lu\1ED3n d\E2y \111i\1EC7n d\1EA1ng xo\1EAFn"]'
    outPorts: {}
    data: {}

  61edce60-e614-4657-bd5b-47562c1392f9:
    id: 61edce60-e614-4657-bd5b-47562c1392f9
    position:
      x: 0
      y: 0
    type: buttonNode
    description: Click on <img> .snA7b1LN img
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      field: '.snA7b1LN img'
      alternative_selectors: 
        - '[srcset="/images/logo-chrismas.svg 640w, /images/logo-chrismas.svg 750w, /images/logo-chrismas.svg 828w, /images/logo-chrismas.svg 1080w, /images/logo-chrismas.svg 1200w, /images/logo-chrismas.svg 1920w, /images/logo-chrismas.svg 2048w, /images/logo-chrismas.svg 3840w"]'
    outPorts: {}
    data: {}

  60de3def-be02-4e9d-ae41-8bbdc0f323ca:
    id: 60de3def-be02-4e9d-ae41-8bbdc0f323ca
    position:
      x: 0
      y: 0
    type: buttonNode
    description: Click on <a> "TRANG CHỦ"
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      field: 'li > [href="/TBDPT"]'
      alternative_selectors: 
        - '[aria-label="Trang ch\1EE7"]'
        - 'li:nth-child(1) > .__2kkiyLbL'
        - '[aria-label="Trang ch\1EE7"]'
    outPorts: {}
    data: {}

  77205a78-a086-4e6f-b8bb-f52afecd6859:
    id: 77205a78-a086-4e6f-b8bb-f52afecd6859
    position:
      x: 0
      y: 0
    type: buttonNode
    description: Click on <a> "ĐẶT HÀNG NHANH"
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      field: '[href="/TBDPT/instantdeal"]'
      alternative_selectors: 
        - '[aria-label="\110\1EB7t h\E0ng nhanh"]'
        - 'li:nth-child(2) > .__2kkiyLbL'
        - '[data-tour="instant-deal-nav"]'
    outPorts: {}
    data: {}

  711cb40d-a6b3-4fec-9b14-e15b943519a4:
    id: 711cb40d-a6b3-4fec-9b14-e15b943519a4
    position:
      x: 0
      y: 0
    type: buttonNode
    description: Click on <a> "QUẢN LÝ QUÀ TẶNG"
    componentName: compName
    outputQ:
      - outputQ
    inPorts:
      field: 'li > [href="/TBDPT/account/campaign"]'
      alternative_selectors: 
        - '[aria-label="Qu\1EA3n l\FD  qu\E0  t\1EB7ng"]'
        - 'li:nth-child(3) > .__2kkiyLbL'
        - '[data-tour="gift-management-nav"]'
    outPorts: {}
    data: {}

edges: 
  508a05c7-6d98-4dd9-acef-2bded2b98392_f99feef3-e519-4fe2-aa28-47b5650bf73e:
    id: 508a05c7-6d98-4dd9-acef-2bded2b98392_f99feef3-e519-4fe2-aa28-47b5650bf73e
    source: 508a05c7-6d98-4dd9-acef-2bded2b98392
    sourceHandle: null
    target: f99feef3-e519-4fe2-aa28-47b5650bf73e
    targetHandle: null
    type: customEdge
    

  f99feef3-e519-4fe2-aa28-47b5650bf73e_f75b1a61-1bea-44d8-8eca-493b12c16ae6:
    id: f99feef3-e519-4fe2-aa28-47b5650bf73e_f75b1a61-1bea-44d8-8eca-493b12c16ae6
    source: f99feef3-e519-4fe2-aa28-47b5650bf73e
    sourceHandle: null
    target: f75b1a61-1bea-44d8-8eca-493b12c16ae6
    targetHandle: null
    type: customEdge
    

  f75b1a61-1bea-44d8-8eca-493b12c16ae6_914a6793-bb2a-432d-8b39-0b5c6fcac979:
    id: f75b1a61-1bea-44d8-8eca-493b12c16ae6_914a6793-bb2a-432d-8b39-0b5c6fcac979
    source: f75b1a61-1bea-44d8-8eca-493b12c16ae6
    sourceHandle: null
    target: 914a6793-bb2a-432d-8b39-0b5c6fcac979
    targetHandle: null
    type: customEdge
    

  914a6793-bb2a-432d-8b39-0b5c6fcac979_61edce60-e614-4657-bd5b-47562c1392f9:
    id: 914a6793-bb2a-432d-8b39-0b5c6fcac979_61edce60-e614-4657-bd5b-47562c1392f9
    source: 914a6793-bb2a-432d-8b39-0b5c6fcac979
    sourceHandle: null
    target: 61edce60-e614-4657-bd5b-47562c1392f9
    targetHandle: null
    type: customEdge
    

  61edce60-e614-4657-bd5b-47562c1392f9_60de3def-be02-4e9d-ae41-8bbdc0f323ca:
    id: 61edce60-e614-4657-bd5b-47562c1392f9_60de3def-be02-4e9d-ae41-8bbdc0f323ca
    source: 61edce60-e614-4657-bd5b-47562c1392f9
    sourceHandle: null
    target: 60de3def-be02-4e9d-ae41-8bbdc0f323ca
    targetHandle: null
    type: customEdge
    

  60de3def-be02-4e9d-ae41-8bbdc0f323ca_77205a78-a086-4e6f-b8bb-f52afecd6859:
    id: 60de3def-be02-4e9d-ae41-8bbdc0f323ca_77205a78-a086-4e6f-b8bb-f52afecd6859
    source: 60de3def-be02-4e9d-ae41-8bbdc0f323ca
    sourceHandle: null
    target: 77205a78-a086-4e6f-b8bb-f52afecd6859
    targetHandle: null
    type: customEdge
    

  77205a78-a086-4e6f-b8bb-f52afecd6859_711cb40d-a6b3-4fec-9b14-e15b943519a4:
    id: 77205a78-a086-4e6f-b8bb-f52afecd6859_711cb40d-a6b3-4fec-9b14-e15b943519a4
    source: 77205a78-a086-4e6f-b8bb-f52afecd6859
    sourceHandle: null
    target: 711cb40d-a6b3-4fec-9b14-e15b943519a4
    targetHandle: null
    type: customEdge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant