<tr>
<td>open</td>
<td>http://economictimes.indiatimes.com/</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=input[style='width: 120px; font-size: 12px;']</td>
<td>Business</td>
</tr>
In selenium RC you can use below code
selenium.open("http://economictimes.indiatimes.com/");
selenium.type("css=input[style='width: 120px; font-size: 12px;']", "Business");
There is another way to use css instead of XpathTry below code for clicking on search button on www.google.com
<tr>
<td>type</td>
<td>q</td>
<td>www.automationtricks.blogspot.com</td>
</tr>
<tr>
<td>click</td>
<td>css=span.ds > span.lsbb > input.lsb</td>
<td></td>
</tr>
Awesome documentation Niraj .
ReplyDeletereally helps anyone who are new to selenium
Thanks :)
Could you give me your email id , so that i could reach you if required . As Iam beginner , iam facing issues in writing the syntax for locators .I would like to have your guidance at the initial stage
ReplyDeleteCould you mail your id to reachreenadey@gmail.com
Heya i am for the primary time here. I found this board and I
ReplyDeleteto find It truly helpful & it helped me out much.
I am hoping to present one thing back and aid others such as you aided me.
Feel free to surf to my website: filing bankruptcy in florida
Unable to identify the object using "css=input[style='width: 120px; font-size: 12px;"
ReplyDeleteCan you pls help me to understand this.
I try to apply same thing for google search box but failed to identify.
ReplyDeleteGet 90% accurate commodity tips and option trading tips for sure gains. For free trial give us a miss call at 080 3008 8464
ReplyDeletenice post thanks
ReplyDeleteMehandi Design
192.168 l 254.254 router login admin password informations. With http://192.168.1.254 ip address, you can perform many operations such as wifi password change, router configuration, Ip configuration, Iptv, port opening via this Ip.
ReplyDeleteThe best online course for business analytics covers tools, case studies, and strategies. It’s ideal for building a career in data-driven roles.
ReplyDelete