I have component with identifier "data-component=order-button_guid"
I would like to generate Xpath like
"//*[@data-component='order-button']+applicationId"
to have it in form
order-button_xxxx-xxx-xxx-xxxxxxxx
I have component with identifier "data-component=order-button_guid"
I would like to generate Xpath like
"//*[@data-component='order-button']+applicationId"
to have it in form
order-button_xxxx-xxx-xxx-xxxxxxxx
Concatenate the GUID with the xpath before the single quote(') as below.
driver.findElement(By.Xpath("//*[@data-component='order-button+applicationId+']"))