We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb6f91f commit d44fec2Copy full SHA for d44fec2
test/webdriverio/test/scroll_test.ts
@@ -116,6 +116,14 @@ suite('Scrolling into view', function () {
116
return blockBounds;
117
});
118
console.log("block bounds:", blockBounds);
119
+ const blockPosition = await this.browser.execute(() => {
120
+ const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;
121
+ const block = workspace.getBlocksByType(
122
+ 'controls_if',
123
+ )[0] as Blockly.BlockSvg;
124
+ return block.getRelativeToSurfaceXY();
125
+ });
126
+ console.log("block position:", blockPosition);
127
const [blockParentBounds, blockParentId] = await this.browser.execute(() => {
128
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;
129
const block = workspace.getBlocksByType(
0 commit comments