0 votes
in Selenium by
You have to use ‘Xpath’ to locate the following input element:

      <input id=”fk-top-search-box” class=”search-bar-text fk-font-13 ac_input” type=”text” autofocus=”autofocus” value=”” name=”q” />

Identify the invalid Xpath from the following options.

a) //input[starts-with(@id, ‘fk-top-search-box’) and contains(@class, ‘fk-font-13)]

b) //input[@id=’fk-top-search-box’]

c) //input[starts-with(@class, ”search-bar-text”)]

d) //input[starts-with(@id, ‘top-search-box’) and contains(@class, ‘font-13’)]

1 Answer

0 votes
by
//input[starts-with(@id, ‘top-search-box’) and contains(@class, ‘font-13’)]

Related questions

0 votes
asked Aug 19, 2019 in Selenium by rahulsharma
0 votes
asked Jan 30, 2020 in Selenium by rajeshsharma
...