Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Want to detect if drop down box is disabled.
#1
Not Solved
How can I make this a validation checkpoint?  I have an object that I have added to my repository. One of it's properties is called innerhtml which has within it, the property I want to check. I want to verify it says aria-disabled=""true""

I created this line which gives me this giant list below, how do i specify the aria-disabled property only?

= Browser("Google Chrome").Page("Collection Supplies Maintenanc").WebElement("NoInclude in Infect SLVM").GetROProperty("innerhtml")

Print x

Which gives me this output...

<mat-select _ngcontent-gvr-c33="""" class=""mat-select ng-tns-c23-386 ng-untouched ng-pristine mat-select-disabled ng-star-inserted"" name=""includeSLVM"" role=""listbox"" id=""mat-select-79"" tabindex=""-1"" aria-labelledby=""mat-form-field-label-359"" aria-required=""false"" aria-disabled=""true"" aria-invalid=""false"" aria-multiselectable=""false""><div class=""mat-select-trigger"" aria-hidden=""true"" cdk-overlay-origin=""""><div class=""mat-select-value""><!----><!----><span class=""mat-select-value-text ng-tns-c23-386 ng-star-inserted""><!----><span class=""ng-tns-c23-386 ng-star-inserted"">No</span><!----></span></div><div class=""mat-select-arrow-wrapper""><div class=""mat-select-arrow""></div></div></div><!----></mat-select><span class=""mat-form-field-label-wrapper""><!----><label class=""mat-form-field-label ng-tns-c15-385 ng-star-inserted"" id=""mat-form-field-label-359"" for=""mat-select-79"" aria-owns=""mat-select-79""><!----><!----><mat-label _ngcontent-gvr-c33="""" class=""ng-star-inserted"">Include in Infect SLVM Calc</mat-label><!----><!----></label></span>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)