91 questions
0
votes
0
answers
49
views
Accessing disabled fields in Datadog synthetic testing
Problem:
I'm currently creating my first synthetic tests in datadog. I'm encountering some difficulty testing whether a form field is disabled or not. I can't select disabled elements for assertions. ...
0
votes
1
answer
3k
views
Safari brower on Ubuntu
I need to test something on Safari, and right now I do not have safari browser and using ubuntu. What can i do?
I tries using PlayonLinux but it installs the oldest version which isnt even supporting ...
1
vote
1
answer
118
views
How to get chrome browser network laps logs in karate UI automation
As part of Oath 2.0 client credential (response type code and ,microsoft SSO) automatio , I need to retreive token from the browser logs (from n/w tabs or response headers) that bearer token can be ...
1
vote
1
answer
420
views
Assert css of an element using Dusk
I need to assert the styles of an element directly from the Dusk tests. In my application, I changed some styles of elements based on a specific condition. e.g. For invalid users, I changed the ...
0
votes
0
answers
799
views
Selenoid browser session not getting created
I have successfully installed Selenoid on my Mac and can view the ui, but when I try run the tests I get "Requested environment is not available" error and I even can't create the sessions ...
0
votes
1
answer
574
views
Custom wait in Testcafe
While testing web application(next.js) with the menu on the left and functionalities like notifications at the top I experienced the problem with clicking on the dropdown button.
Steps:
Robot clicks ...
0
votes
0
answers
387
views
Mocking browser download functionality
I have a React component which internally creates a script DOM element. There is a bunch of logic around handling onload and onerror events of this script. The onload and onerror handlers are internal ...
0
votes
1
answer
311
views
How to open chromium with half of screen-width and aligned to right screen-border?
I would like to set the window-position within the total available screen, so it takes up half of the screen-size and is positioned at the right end of the screen with its right border. Couldn't find ...
0
votes
1
answer
532
views
Fitnesse Ignore result of method
I am trying to run this fixture code:
|script |Browser Test |
|open |https://jsfiddle.net/ygjL7hnm/3/show|
|click |Run this fiddle ...
2
votes
0
answers
290
views
Is there a way to input a newline in a textarea with Laravel Dusk?
I am trying to add an input consisting of multiple lines to a textarea.
The textarea:
<textarea dusk="input-field"><textarea>
I have tried multiple ways of making this happen, ...
1
vote
1
answer
6k
views
How to disable SSL check in Python Selenium to access microphone?
How do you disable Chrome's verification of self-signed SSL certificate?
I'm trying to unittest a mobile web app using Selenium in Python. Because it accesses the browser's microphone, it has to use ...
1
vote
1
answer
628
views
How can I integrate selenium tests with sauce labs in c#?
On saucelabs website they provide a code snippet like this:
WebDriver webDriver = new WebDriver();
webDriver.set(new RemoteWebDriver(
new URL("https://UrlHEREagwgwgqwg4894+4+91gwgq")
))
...
2
votes
1
answer
251
views
Phpunit-Selenium runs all assert functions
I want to write some browser tests using phpunit-selenium, Now this is my test class
<?php
namespace Tests\System;
use Tests\TestCase;
class LoginTest extends TestCase
{
/**
* @test
...
1
vote
0
answers
613
views
Laravel Dusk - Check box not clicking
I'm developing a few browser tests using Laravel Dusk for my VueJs/Laravel Application.
I'm trying to "check" a checkbox but I'm having issues. I managed to wait for its parent element to be ...
0
votes
2
answers
928
views
Laravel dusk with browserstack to run tests on multiple devices and browsers
I am using this ("browserstack/browserstack-local": "^1.1") package to run dusk tests on BrowserStack. Now the requirement is to run tests on multiple and different devices with ...
-1
votes
1
answer
875
views
Is there any way to connect localhost in mobile devices like iOS in browser stack?
I tried of connecting http://localhost:3000 through my local ip address like http://mylocalipaddress:3000, but still the local site is not working for mobiles and tablets.
Is there any way to connect ...
8
votes
2
answers
5k
views
Cypress good practices with cy.wait
I have the following test, written in Cypress. I use VueJS with SSR support for my frontend.
My app it’s an SPA and I am testing the user click on a menu.
before(() => {
// mock data etc.
});
...
4
votes
0
answers
521
views
Laravel Dusk getting: "stale element reference: element is not attached to the page document"
Yesterday, I run my Laravel Dusk tests and they worked fine, today I run them and 8 out of the 13 fail, most of them with "stale element reference". I've made some modifications to the app ...
1
vote
0
answers
556
views
Laravel Dusk Select CSS Variable
I'm writing a browser test for my dark-theme. I'm trying to test that when the checkbox is checked, the variable var(--bg-color) is #3a3c3b. Now when I run this test it always succeeds even if I put ...
1
vote
0
answers
1k
views
Selenium: Why does chromedriver.exe randomly "freeze", failing my tests?
Given:
All the below are on Windows 10 / Server 2012 R2
Selenium .Net (C#) tests (Selenium.WebDriver nuget v3.141.0, .Net Framework v4.8)
ChromeDriver 78.0.3904.70
Google Chrome Version 78.0.3904.97 (...
0
votes
0
answers
700
views
Testcafe takes about 2 minutes everytime to trigger the browser. What could be the fix here?
I have node 12.14.0, npm 6.13.4 and testcafe 1.7.1 in my Windows 10 PC.
I am trying to run a basic sample script using the command testcafe chrome test1.js:
import { Selector } from 'testcafe';
...
2
votes
0
answers
422
views
How can I force the 'type' method in Laravel Dusk to completely input my test data in the browser
I have three test data [Checking, Shipping, Delivering] to input automatically using loop. It will not input the third one and that causes the test to fail. Here's the code.
Here is the code for my ...
1
vote
3
answers
5k
views
Unable to run Laravel Browser Test with Dusk
I am setting up Browser Test with Laravel 5.7. Install Laravel Dusk. My very beginning php artisan dusk command return errors
My Chrome is version 76. Initially, I see "Chrome version must be between ...
16
votes
2
answers
22k
views
Disable web security in Cypress just for one test
After reading the Cypress documentation on web security and when to disable it, I've decided I indeed need to do it. Is there a way to disable this just for one particular test/test suite? I'm using ...
0
votes
1
answer
326
views
Fitnesse & XPath - Count() does not return an integer, returns the list instead
When using Fitnesse, Slim and the Browser Testing framework I was given the challenge to count the amount of items within an ordered list (simplified):
<a>
<b>1</b>
<b>...
1
vote
1
answer
2k
views
How do I add additional data to Cypress failures?
I would like to log additional data when a test case fails. Where can I best insert my custom error handler?
For example:
cy.get('something')
.should('have.property', 'blah')
When this fails in ...
0
votes
1
answer
674
views
How to fix dusk $browser->select() with String value
I have a filter and one option is to choose a device-type. There is a list of possible options and you can only use one of the options (so no plain text)
The filter-field is named typ_id and can be ...
0
votes
0
answers
295
views
What is the difference between ->assertSee and ->See
Simple question, can't find anything satisfying on Google.
What is the difference between ->assertSee and ->See?
Which should I use to check content from a page?
1
vote
1
answer
1k
views
Call a PHP Method from another class
This has definitely been answered more then once. But I don't get it for my case.
So I am writing browser-test for a part of our projekt.
The function is, that there are users, that can login and ...
0
votes
0
answers
942
views
How to wait for alert to close using selenium web driver to enter password in main window using javascript
I'm trying to write a script that will navigate a page on the browser. One of the first things I need to do is close an alert that appears. Once the alert is close I need to enter a user name and ...
1
vote
1
answer
732
views
Laravel dusk assert flash message
I have following flash message generated on my page
flash('Success message')->success();
Trying to assert through
->assertSee('Success message');
With no luck
<div class="alert
...
1
vote
1
answer
556
views
How to fix Katalon Recorder on Chrome
I am new to Kalalon Recorder. After installing the Katalon, while opening the plugin, it is opening in a new window.
Is there an option to fix the plugin in the browser, so that we can see both ...
3
votes
1
answer
3k
views
Laravel Dusk Test assert the element of selector does not exist
I am developing a Web application using the Laravel framework. I am running Dus/Browser unit testing on my application. But now I am having problem with asserting if the selected element exist.
I ...
4
votes
2
answers
4k
views
Laravel Dusk fails to assert seeing a text which is visible in the screenshot (using whenAvailable for modal)
I have written a Laravel Dusk test. I am trying to assert whether some text is visible after the modal is open. So, I am using the whenAvailable method. But it fails while I can see the text in the ...
0
votes
1
answer
1k
views
Laravel Test seeJsonContains
I got this result after running Unit Test.
Result:
1) Tests\Functional\Controllers\Api\UsersControllerTest::testUsersIndex
Unable to find JSON fragment
[[{"email":"[email protected]","id":"706"}]]
...
0
votes
4
answers
2k
views
Laravel dusk, incorrect testing result
I just discovered Laravel Dusk, and wrote first test, which had to check for text on the page, but Laravel Dusk doesn`t see my page.
Test:
namespace Tests\Browser;
use Tests\DuskTestCase;
use ...
2
votes
1
answer
70
views
What is a short, general term for automated browser testing? [closed]
I often want to refer, generally, to automated browser tests (like Selenium or PhantomJS).
The only terms I've heard describe it unambiguously are quite long, and make them unwieldy in conversation ("...
3
votes
2
answers
105
views
How can measure application performance on browser while Functional Automation Suite is running?
Is there any tool or plugin which we can incorporate with existing Functional Automation Test suite.
Earlier till 2011-12 we were using Dynatrace Ajax edition. It was a plugin for Chrome and IE. We ...
0
votes
3
answers
2k
views
Testing vuetify v-select with laravel dusk
Does anyone know how to test vuetify v-select with laravel dusk?
I've tried $browser->select('size', 'Large'); without success
this is one of the v-selects that i want to test
<v-flex class="...
3
votes
3
answers
3k
views
Select an option based on text in drop-down with Laravel Dusk
I want to choose a drop-down option based on its text,what should i do?
This is my Html code :
<select name="category">
<option>Appliances</option>
<option>Sporting ...
8
votes
3
answers
19k
views
UnhandledPromiseRejectionWarning: Error: Protocol error (Runtime.callFunctionOn): Target closed. (Puppeteer)
I am new to Puppeteer and Node and I get this error when trying to execute the following code:
'use strict';
const puppeteer = require('puppeteer');
const evalLib = require('./oaa_a11y_evaluation.js'...
0
votes
2
answers
6k
views
WebdriverIO config file for multiple browsers
I need to run test cases on multiple browsers, while using webdriverIO. Despite going through several articles and documentation of WDIO, I couldn't find a way in which works.
this is my wdio.conf.js....
166
votes
8
answers
284k
views
How to wait N seconds before continuing to the next line?
In puppeteer I would like to wait a defined time before going to the next line of code.
I've tried to put a setTimeout in an evaluate function but it seems to be simply ignored
console.log('before ...
0
votes
1
answer
1k
views
puppeteer : console.log in evaluate triggers error "Unhandled promise rejection"
In puppeteer , when i want to use console.log from evaluate , it triggers me an error
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({headless: ...
29
votes
7
answers
36k
views
How to specify browser language in Puppeteer
I would like to launch a Google Chrome browser with language Spanish es using Puppeteer.
I've tried puppeteer.launch(args:['--lang=es',...],...) but it didn't work.
I've tried passing the ...
0
votes
1
answer
1k
views
Having trouble with using laravel dusk
I am a newbie Laravel Dusk. I am trying to write a scenario that click a link a[href] then assertSee something. i have been spending whole day but just cant.
<li>
<a ...
3
votes
1
answer
1k
views
What is the best way to wait for 'WebComponentsReady' event in TestCafe?
I want to wait for web components in the page to upgrade before running any TestCafe tests (In other words, wait for WebComponentsReady event before running tests). What is the best way to do this?
-1
votes
2
answers
784
views
Benchmark path-planning algorithm written in TypeScript in the browser
I have 3 typescript algorithms I need to benchmark in the browser. I tried area51, area51 is only for JavaScript. I also found a pastebin:
//pastebin.com/gCs9CB5F
Can someone give me a hint how to ...
2
votes
3
answers
1k
views
How to *automate* browser based unit tests, locally or on Jenkins
Straight up been looking for answers to this question for months, still no idea how to actually do it - how does one automate tests that run in the browser? Selenium tests run on the backend and of ...
4
votes
2
answers
2k
views
Mocking mail with Laravel 5.4 (dusk)
I'm trying to test mails within browser tests in Laravel 5.4.
I have this code in a InvitationTest class inside a browse callback function:
\Mail::fake();
$browser->visit('projects')
->...