Skip to content

Commit

Permalink
Minor changes in wikipedia ios examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Dec 29, 2023
1 parent 9596fc6 commit 30ec20b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/mobile-app-tests/ios-js/wikipedia-ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ describe('Wikipedia iOS app test', function() {
});

it('Search for BrowserStack', async function(app) {
// click on search bar
// click on search bar at the top.
const searchField = app.element(by.xpath('//XCUIElementTypeSearchField[@name="Search Wikipedia"]'));
searchField.click();

// above step will open another search field (with same xpath), type 'browserstack' in that.
const editableSearchField = app.element(by.xpath('//XCUIElementTypeSearchField[@name="Search Wikipedia"]'));
editableSearchField.sendKeys('browserstack');

// click on search result with
// click on search result with name attribute as 'BrowserStack'.
const bstackSearchResult = app.element(by.xpath('//XCUIElementTypeStaticText[@name="BrowserStack"]'));
bstackSearchResult.click();

Expand Down
4 changes: 2 additions & 2 deletions assets/mobile-app-tests/ios-ts/wikipedia-ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ describe('Wikipedia iOS app test', function() {
});

it('Search for BrowserStack', async function(app: NightwatchAPI) {
// click on search bar
// click on search bar at the top.
const searchField = app.element(by.xpath('//XCUIElementTypeSearchField[@name="Search Wikipedia"]'));
searchField.click();

// above step will open another search field (with same xpath), type 'browserstack' in that.
const editableSearchField = app.element(by.xpath('//XCUIElementTypeSearchField[@name="Search Wikipedia"]'));
editableSearchField.sendKeys('browserstack');

// click on search result with
// click on search result with name attribute as 'BrowserStack'.
const bstackSearchResult = app.element(by.xpath('//XCUIElementTypeStaticText[@name="BrowserStack"]'));
bstackSearchResult.click();

Expand Down

0 comments on commit 30ec20b

Please sign in to comment.