--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CALLrrpLQ%3DUfdY3J3iqsYp6eY0yBfz-Fqn5VcLfAEz6vfNQT5vg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAOHS9cDc3eW6ExE45UZsN6OM1CWYJFxGh5tFAmRXvQLTNNAi6Q%40mail.gmail.com.
It is not completely clear what you are trying to do. It looks like you want to dynamically create an xpath address using the pin. Not sure what language you are using, but in python you could use the replace command to get what you want. A simple example is posted below. I used XX to indicate the spot where I want to replace characters in the predefined string mask. Note that you can replace those characters with more new characters than were in the mask (for instance you can insert 7 new characters where only two were before). Hope this helps:
first_name_mask =("//*[@id='FXX']")
pin = '2919398'
first_name = first_name_mask.replace("XX",pin)
print(first_name)
--