Category : selenium-webdriver

I am stuck on why I cannot click any element that is located inside the iframe element which lies inside the shadow root (open). Selenium throws WebDriverException saying “unknown error: no element reference returned by script”. The whole page has several shadow root elements. And I am able to interact with any element inside them ..

Read more

I have the following structure I want to query for some e2e angular test with protractor: <div id=’parentId’> <div>First</div> <div>Second</div> <div>Third</div> <div>Four</div> </div> Currently I want to retrieve a list of the texts of the child div elements : [‘First’,’Second’, ‘Third’, ‘Fourth’] I remember being able to do so with protractor in Angular some time ..

Read more

We have a scenario in our project – there is a text area in which if we click "ctrl + space", there is a list/dropdown which gets visible. Now I want to simulate this behaviour with my protractor test case. Please find the code below: await letterBody.sendKeys(lettertestdata.LetterTemplate.letterBodyText); // to enter "this is automated test text" ..

Read more

I am writing test automation for Ajenti2 With Selenium for Python I need to disable animation: progress bar, buttons, icons, etc I found it: $animate.enabled() here https://docs.angularjs.org/guide/animations But i can’t figure out how to apply it. This works in: https://plnkr.co/edit/ It doesn’t work in DevTools console, or by adding a script to the template: https://github.com/ajenti/ajenti/blob/master/plugins/core/content/pages/index.html ..

Read more

Tests are passing successfully locally. My config: name: E2E on: push jobs: build: name: Test runs-on: ubuntu-latest steps: – name: Checkout Repo uses: actions/[email protected] – name: Install Node uses: actions/[email protected] with: node-version: 14.8 – name: npm dependencies run: npm install – name: npm ci run: npm ci – name: Build run: npm run build – ..

Read more

Html: <li _ngcontent-goj-c2 id="user"> <a _ngcontent-gij-c2>User</a> ==$0 </li> This is the html script of the value i want to click from the dropdown.. I am able to run the selenium script successfully without error but required page is not getting loaded after clicking on the dropdown option Code: Action ac= new Action(driver); Ac.moveToElement(dropdown).moveToElement(User).click().build().perform(); Source: Angular ..

Read more