How can I take a return value of a function and submit it to a website with selenium?

I want to take the output of my simple number generator and input it to a website using selenium - python?

import random
def myfunction():
    value = random.randint(1111111111,9999999999)
    return value
var = myfunction()

1 answer

  • answered 2018-01-14 07:25 k252


    It was pretty simple. My function was called "my function". I sent it with the code below: