How to use Xpath of button in Selenium RC?
问题 I am working in Selenium RC. Can anyone please let me know how to write xpath for button in Selenium (Java)? 回答1: You should develop the script in the Selenium IDE (download) before porting it to Selenium RC. In Selenium IDE, when you click anything on the webpage, it should automatically generate some kind of selector for the element you clicked. Then, once you've recorded all the events, you Format it in whatever language you're using, and then you copy and paste it to your Selenium RC code