Skip to content

Commit

Permalink
Replaced menu xpath with selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
uditrajput03 committed Mar 11, 2024
1 parent a505b5a commit 8d4d71b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/js-examples-new/page-objects/google/searchResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ module.exports = {

sections: {
menu: {
selector: '//*[@id="main"]//div[@role="navigation"]',
locateStrategy: 'xpath',
selector: 'div[role="navigation"] div[data-st-cnt="mode"]',
commands: [menuCommands],
elements: {
maps: {
Expand Down

0 comments on commit 8d4d71b

Please sign in to comment.