1

I am trying to run selenium node with batch file, there is no errors but not work at all, here is my code:

NOTE: The batch file gets the ip address as an argument

    cd c:\
    cls
    set s1=http://
    set s2=%1
    set s3=:1111/grid/register
    SET IP_ADRESS = %s1%%s2%%s3%

    echo %IP_ADRESS%
    pause
    java -jar C:\selenium_standalone\selenium-server.jar -role node -hub %IP_ADRESS%
0

1 Answer 1

1

Remove the spaces before and after the = from SET IP_ADRESS = %s1%%s2%%s3%, and it will work.

SET IP_ADRESS=%s1%%s2%%s3%
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.