Skip to content

What is the difference between I.see & I.seeTextEqual #1833

@sumiagar

Description

@sumiagar

I want to verify the Text and browse the screen

1) Test the Settings Options

   Verify the Settings options @sanity:
 Can't start within block inside another within block

Provide console output if related. Use --verbose mode for more details.

  1. Test the Settings Options
    Verify the Settings options @sanity:
    Can't start within block inside another within block
# paste output here

Provide test source code if related

Scenario('Verify the Settings options @sanity', (I,settings) => {
    
    I.navigateTo('settings');
    settings.verify_the_Settings_options();
});


verify_the_Settings_options: function() {

    within({frame: "#SETTINGS"}, () => {
      for(let i =0; i<settings_submenu.length; i++)
      {
        console.log(settings_submenu[i])
        //I.see(settings_submenu[i])
      I.seeTextEquals(settings_submenu[i],'//*[@id="settingsMenu"]/li[i+1]/p');
      //  I.seeElement('//*[@id="settingsMenu"]/li[i+1]/img[i+1]')
        I.pressKey(key.DOWN)
      }
  });
},

With I. See test is executing normal . and pass
When I use I.seeText Equal in that case failing and saying can't use blaock inside a block

Details

  • CodeceptJS version:
  • NodeJS Version:
  • Operating System:
  • Protractor || WebDriverIO || Nightmare version (if related)
  • Configuration file:
# paste suite config here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions