Skip to main content

I’m creating SDK tests and I need to select the row by column name and value. However, it throws error “Element is not interactable” when I use this: 

users.UserRoles.SelectRow("Role Name", "Anonymous"); 

or this:

users.UserRoles.SelectRow(users.UserRoles.Columns.Rolename, "Anonymous");

It only works with index: users.UserRoles.SelectRow(10);

Could someone please help me out?

 

Hello,
Both your first attempts should have worked, but here is a full example
This code should work:


PxLogin.LoginToDestinationSite();
User.OpenScreen();
User.Summary.Username.Select("admin");
User.Roles.SelectRow(User.Roles.Columns.Rolename, "Anonymous");
User.Roles.Row.Selected.SetTrue();
User.Save();


Yes, same as I have, but it doesn’t work from my side. Have I imported correct namespaces ?

using Controls.CheckBox;
using Core.Login;
using Core.TestExecution;

using Tests_ASC.Extensions;


You should review your error in the log folder or in the compiler.
Looks good to me but your error says the page is not accessible. Ensure you are using the correct website and have it configured to use that same one.


Hi @annanykolenko71 were you able to find a solution? Thank you!


Reply