Try to search your question here, if you can't find : Ask Any Question Now ?

Rewrite xpath OR condtion selector as css

HomeCategory: stackoverflowRewrite xpath OR condtion selector as css
Avatarcraig asked 2 weeks ago

I have this xpath OR condition selector that i like to rewrite as css

find_element(:xpath, "//input[@id='#{id_or_name}' or @name='#{id_or_name}'][@type='checkbox' or @type='radio']")

this is another, will this work?

find_element(:css, "input[id='{id_or_name}'][name='{id_or_name}'][type='checkbox'][type='radio']")
1 Answers
Best Answer
Avatarnaveen answered 2 weeks ago
Your Answer

20 + 11 =

Popular Tags

WP Facebook Auto Publish Powered By :