![]() ![]() Learn more about aria-disabled.Įxact boolean (optional) Added in: v1.28 # Unlike most other attributes, disabled is inherited through the DOM hierarchy. Role "alert"|"alertdialog"|"application"|"article"|"banner"|"blockquote"|"button"|"caption"|"cell"|"checkbox"|"code"|"columnheader"|"combobox"|"complementary"|"contentinfo"|"definition"|"deletion"|"dialog"|"directory"|"document"|"emphasis"|"feed"|"figure"|"form"|"generic"|"grid"|"gridcell"|"group"|"heading"|"img"|"insertion"|"link"|"list"|"listbox"|"listitem"|"log"|"main"|"marquee"|"math"|"meter"|"menu"|"menubar"|"menuitem"|"menuitemcheckbox"|"menuitemradio"|"navigation"|"none"|"note"|"option"|"paragraph"|"presentation"|"progressbar"|"radio"|"radiogroup"|"region"|"row"|"rowgroup"|"rowheader"|"scrollbar"|"search"|"searchbox"|"separator"|"slider"|"spinbutton"|"status"|"strong"|"subscript"|"superscript"|"switch"|"tab"|"table"|"tablist"|"tabpanel"|"term"|"textbox"|"time"|"timer"|"toolbar"|"tooltip"|"tree"|"treegrid"|"treeitem" #Īn attribute that is usually set by aria-checked or native controls.Īn attribute that is usually set by aria-disabled or disabled. Playwright also supports transferring some additional values that are not serializable by JSON: -0, NaN, Infinity, -Infinity. If the function passed to the page.evaluate() returns a non- Serializable value, then page.evaluate() resolves to undefined. If the function passed to the page.evaluate() returns a Promise, then page.evaluate() would wait for the promise to resolve and return its value. Returns the value of the pageFunction invocation. Passing null disables reduced motion emulation. ReducedMotion null|"reduce"|"no-preference" (optional) Added in: v1.12 #Įmulates 'prefers-reduced-motion' media feature, supported values are 'reduce', 'no-preference'. Passing null disables CSS media emulation. ![]() The only allowed values are 'screen', 'print' and null. Media null|"screen"|"print" (optional) Added in: v1.9 #Ĭhanges the CSS media type of the page. Passing null disables forced colors emulation. Passing null disables color scheme emulation.įorcedColors null|"active"|"none" (optional) Added in: v1.15 #Įmulates 'forced-colors' media feature, supported values are 'active' and 'none'. This method changes the CSS media type through the media argument, and/or the 'prefers-colors-scheme' media feature, using the colorScheme argument.ĬolorScheme null|"light"|"dark"|"no-preference" (optional) Added in: v1.9 #Įmulates 'prefers-colors-scheme' media feature, supported values are 'light', 'dark', 'no-preference'. Useful to wait until the element is ready for the action without performing it.ĮmulateMedia Added in: v1.8 page.emulateMedia When set, this method only performs the actionability checks and skips the action. The default value can be changed via actionTimeout option in the config, or by using the tDefaultTimeout() or tDefaultTimeout() methods. If not specified, some visible point of the element is used. TargetPosition Object (optional) Added in: v1.14 #ĭrops on the target element at this point relative to the top-left corner of the element's padding box. If given selector resolves to more than one element, the call throws an exception. When true, the call requires selector to resolve to a single element. Strict boolean (optional) Added in: v1.14 # SourcePosition Object (optional) Added in: v1.14 #Ĭlicks on the source element at this point relative to the top-left corner of the element's padding box. You would only need this option in the exceptional cases such as navigating to inaccessible pages. You can opt out of waiting via setting this flag. Defaults to false.Īctions that initiate navigations are waiting for these navigations to happen and for pages to start loading. Whether to bypass the actionability checks. If there are multiple elements satisfying the selector, the first will be used. ![]() If there are multiple elements satisfying the selector, the first will be used.Ī selector to search for an element to drop onto. A selector to search for an element to drag. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |