Rohith1324
Board Regular
- Joined
- Feb 27, 2018
- Messages
- 114
Hi,
Currently one of the line in my code is :
bot.FindElementByXPath("//*[@id='createNewForm']/div[3]/div/div/div/ul/li[4]/a/span[1]").Click
the above highlighted value "4" should get replaced with the value from below specified formula :
c.Offset(0, 1).Value
So I have tried adding the above cell reference in the code as below , but not working :
bot.FindElementByXPath("//*[@id='createNewForm']/div[3]/div/div/div/ul/li" & c.Offset(0, 1).Value & "/a/span[1]").Click
can someone please help me in getting that incorporated in code please.
Regards,
Rohit
Currently one of the line in my code is :
bot.FindElementByXPath("//*[@id='createNewForm']/div[3]/div/div/div/ul/li[4]/a/span[1]").Click
the above highlighted value "4" should get replaced with the value from below specified formula :
c.Offset(0, 1).Value
So I have tried adding the above cell reference in the code as below , but not working :
bot.FindElementByXPath("//*[@id='createNewForm']/div[3]/div/div/div/ul/li" & c.Offset(0, 1).Value & "/a/span[1]").Click
can someone please help me in getting that incorporated in code please.
Regards,
Rohit