Sign InSign Up

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

    • Academy Rocketbot
    • Tutorials
    • Documentación
Search
Ask A Question

Mobile menu

Close
  • Home
  • Popular
  • Categories
  • Tags
  • Questions
    • New Questions
    • Most voted
    • Most visited
    • Most Responded
  • Academy Rocketbot
  • Tutorials
  • Documentación
Home/ Questions/Q 7722
Next
Answered

Rocketbot Forum Latest Questions

cjhs1990@hotmail.com
  • 0
  • 0
cjhs1990@hotmail.com
Asked: June 14, 20222022-06-14T16:52:10+00:00 2022-06-14T16:52:10+00:00In: Ejecución

Error al devolver valor de lista

  • 0
  • 0

Hola,

Estoy haciendo un script en donde debo obtener el valor de una lista de respuestas en base al valor de una lista de preguntas. Es el siguiente:

Las variables declaradas en rocketbot:

Como pueden ver, me está devolviendo solo 1 letra en lugar del texto de la primera posición.

¿Qué puedo estar haciendo mal?

Gracias,

Saludos.

getvarlistapythonvariables
3
  • 3 3 Answers
  • 5k Views
  • 0 Followers
  • 0
Share
  • Facebook

    3 Answers

    • Voted
    • Oldest
    • Recent
    1. Doraemon
      Best Answer
      Doraemon
      2022-06-14T20:02:38+00:00Added an answer on June 14, 2022 at 8:02 pm

      Hola cjhs, buenas tardes

      Cambia la primera linea de
      «pregunta_web = GetVar(‘pregunta_web’)»
      Por
      «pregunta_web = {pregunta_web}»
      E intenta ejecutar el script nuevamente

        • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • cjhs1990@hotmail.com
        cjhs1990@hotmail.com
        2022-06-15T13:54:43+00:00Replied to answer on June 15, 2022 at 1:54 pm

        Hola Doraemon,

        Gracias por la sugerencia, hice el cambio pero sigue arrojando el mismo resultado.

        Saludos.

          • 0
        • Reply
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • cjhs1990@hotmail.com
          cjhs1990@hotmail.com
          2022-06-15T14:20:49+00:00Replied to answer on June 15, 2022 at 2:20 pm

          Hola Doraemon,

          Hice lo que me comentaste con las variables de listas y ahora si funcionó.

          lista_preguntas = {lista_preguntas}
          lista_respuestas = {lista_respuestas}

          Muchas gracias!

          Saludos.

          Saludos.

            • 0
          • Reply
          • Share
            Share
            • Share on Facebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Ask A Question

    Stats

    • Questions : 1k
    • Answers : 2k
    • Posts : 0
    • Comments : 0
    • Best Answers : 163
    • Users : 6k
    • Popular
    • Comments
    • Tags

    Related Questions

      • Answers: 2

      Message: Can not connect to the Service C:\Rocketbot_20201230_a4_win\Rocketbot\drivers\win\chrome\chromedriver.exe

      • Answers: 5

      RTFRAMEWORK CONFIG

      • Answers: 4

      Google chrome bloquea la descarga de varios archivos debido a ...

      • Answer: 1

      Error Status

      • Answers: 0

      Restaurar Paginas Chrome

    Users

    Explore

    • Home
    • Popular
    • Categories
    • Tags
    • Questions
      • New Questions
      • Most voted
      • Most visited
      • Most Responded

    Footer

    rocketbot white

    Rocketbot SpA | Todos los derechos reservados 2018 - 2020

    © 2020 Discy. All Rights Reserved
    With Love by 2code.

    en_US
    es_ES en_US

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.

        Notifications