Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interview Questions
#4
Not Solved
There are different ways of handling the 3rd question.

1) Xpath

Code:
Browser().Page(). WebCheckBox("xpath:=(//input[@type='checkbox'])[2]").Highlight


2) Usual DP
     
Code:
I)  Browser().Page().WebCheckBox("index:=1").Highlight
II) Create Description Object > Child Objects > Then Work on the 2nd checkbox

3) OR :You can add a generic checkbox to OR and then update the index in the runtime using the SetToProperty ("index",2)

There are lot of ways doing it, but I have given simple and straight forward methods.

Let me know if you need any further details on this.
Thanks,
SUpputuri
Reply


Messages In This Thread
Interview Questions - by praveen.sharma - 02-11-2014, 02:04 PM
RE: Interview Questions - by ADITI1992 - 09-08-2015, 11:20 PM
RE: Interview Questions - by vinod123 - 11-03-2015, 03:55 PM
RE: Interview Questions - by supputuri - 11-04-2015, 02:50 AM
RE: Interview Questions - by ahmad3029 - 08-23-2022, 02:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interview Questions supputuri 12 12,680 08-23-2022, 11:45 AM
Last Post: ahmad3029
  Interview question nandha 0 1,726 03-28-2018, 03:32 PM
Last Post: nandha
  Few Interview Question asked in various Companies.. shailesh.2.singh@bt.com 1 3,287 08-08-2017, 09:24 AM
Last Post: mallika199317@gmail.com
  Interview Question raghavaqtp 1 3,537 12-20-2014, 09:55 PM
Last Post: supputuri
  Interview Questions-2 supputuri 3 8,768 06-24-2014, 02:28 PM
Last Post: kotaramamohana

Forum Jump:


Users browsing this thread: 1 Guest(s)