Playwright Power Platform Toolkit
GitHubGitHub
  • Home
    • Overview
    • Getting Started
    • Canvas Apps
    • Model-Driven Apps
    • Authentication
    • Advanced Usage
    • Overview
    • Core Components
    • Usage Patterns
    • Sequence Diagrams
    • Extending
    • System Diagram
    • Quick Reference
    • Readme
      • Accessibilityassertions
      • Accessibilitytesthelper
      • Apiassertions
      • Apirecorder
      • Apitesthelper
      • Applauncherfactory
      • Appprovider
      • Baselocators
      • Canvasapppage
      • Confighelper
      • Locatorutils
      • Modeldrivenapppage
      • Powerappspage
      • Powerappspagelocators
      • Testlogger
      • Applaunchmode
      • Apptype
      • Canvascontroltype
      • Endpointurl
      • Timeout
      • Wcaglevel
      • Authenticatetomicrosoft
      • Buildbapapiendpoint
      • Buildresourcequeryendpoint
      • Checkenvironmentvariables
      • Checkstoragestateexpiration
      • Clearauthstate
      • Clickwithretry
      • Createauthenticatedapicontext
      • Createbapapiheaders
      • Createquerypayload
      • Doubleclickelement
      • Elementexists
      • Extractrequestid
      • Extracttokenfromstorage
      • Fillwithretry
      • Generaterandomalphanumeric
      • Generateuniqueappname
      • Getattributevalue
      • Getauthstate
      • Getauthtoken
      • Getcanvascontrolbyname
      • Getcanvasdatatestid
      • Getcanvasscreenbyname
      • Getelementcount
      • Getmodeldrivendataautomationid
      • Getmodeldrivenformfield
      • Getmodeldrivennavitem
      • Getmodeldriventablepage
      • Getstoragestatepath
      • Gettextcontent
      • Handledialog
      • Hasvalidauth
      • Hoverelement
      • Iselementchecked
      • Iselementdisabled
      • Iselementenabled
      • Loadauthconfig
      • Polloperationstatus
      • Presskey
      • Pressshortcut
      • Rightclickelement
      • Scrollintoview
      • Selectdropdownoption
      • Takescreenshot
      • Typewithdelay
      • Uploadfile
      • Validateapiresponse
      • Validateauthconfig
      • Waitfordownload
      • Waitforelement
      • Waitforelementcount
      • Waitforelementhidden
      • Waitfornetworkidle
      • Waitforspinnertodisappear
      • Apirecorderoptions
      • Apiresponsevalidation
      • Appcreationoptions
      • Appmetadata
      • Appplayeroptions
      • Assertionoptions
      • Controloptions
      • Iapplauncher
      • Launchappconfig
      • Msauthconfig
      • Navigationoptions
      • Operationresult
      • Queryoptions
      • Recordedapicall
      • Recordingstatistics
      • Searchoptions
      • Storagestate
      • Testcodeoptions
      • Tokenexpirationcheck
      • Waitoptions
      • Accessibilityrules
      • Canvasapplocators
      • Modeldrivenapplocators
      • Powerappsapiendpoints
      • Powerappspageselectors
      • Colors

On This Page

  • Parameters
  • page
  • selector
  • attribute
  • Returns
Question? Give us feedback →Edit this page on GitHub →
API ReferencefunctionsGetattributevalue

Playwright Power Platform Toolkit v0.0.4


Playwright Power Platform Toolkit / getAttributeValue

Function: getAttributeValue()

getAttributeValue(page, selector, attribute): Promise<string>

Defined in: utils/app-helpers.ts:319

Get element attribute value

Parameters

page

Page

Playwright page object

selector

string

Element selector

attribute

string

Attribute name

Returns

Promise<string>

Attribute value

GenerateuniqueappnameGetauthstate

2026 © Deepak Kamboj.