I am trying to click something on a webpage. For this click activity, I am creating a selector (called newSelector) that has one variable (called fileNameSave) in it, as that part will change everytime when I go through a loop.
fileNameSave is in string format. I create it from a datatable like this fileNameSave=row(0).ToString.
I use the variable “fileNameSave” inside my selector variable (called "newSelector):
It is very strange, even if I use the variable “fileNameSave”, and make it something else, for example:
fileNameSave = “hello everyone”
it will not give an error, but simply use that “hello everyone” normally.
Try to just write the value row(0).ToString and check wat value you are getting, may the row item is of the different data type and you are trying to cast it to string which is not possible.