`/div` before `/input` is closed. So use ("div[@class=`RNNXgb']/div/div[2]/input") This worked for me.