Trying to find out how could I insert some text inside the span that has a dynamic div as a parent. the span has the price that is calculated after initial steps. I am really stuck with this.
I check the value of that span with regexp:."*[1-9].*"
This option does not really work
//div[@class='gatsby-focus-wrapper']/main/div/div[4]/div/div/div[3]/div[3]/div/div/div[2]/div[2]/div/div[3]/span
Thanks a lot in advance!
CodePudding user response:
Seems that I can use "// *[@amount]". Cannot really use //span[@amount='14.03'] as the price is changing for every single user. But, suggestion did help. Thanks for the lift up folks :)