8

I discovered the following points while speeding up my protractor(selenium) tests: Run tests in a headless browser(from version 59, chrome can be run headless natively) Run tests as direct connection(directConnect: true) Don't log off & reuse user session between tests with the same base state(Home Page) wherever possible. Make short & simple to ...


2

You say you have little design experience: while it is possible to start alone, you are likely to make many mistakes without being aware of them. Working as newbie without a guidance of someone senior is sub-optimal for your professional growth, but possible. So don't worry and do your best. You can always change it when you learn better way to do it. Making ...


2

From my point of view here are some general guidelines to improve end-to-end testing execution speed for GUI automation. 1- Build a solid Object Repository by using unique attributes/properties to define test objects. 2-Devide test script into small test functions that are simple (Do not re-implement complex business). 3- Define correct points where to ...


2

This is normally done by injecting authorization headers into the outgoing packets. However BrowserStack seems not having this feature in their nearest roadmap.


1

I think the best way would be to have a look at BrowserStack website, they actually answer all of your questions. However, to point you a bit to the right direction, as of May 2021, BrowserStack offers these products: Out of these, you will likely be interested in these 3: because they let you test in desktop, tablet, and mobile browsers on various devices ...


1

In every testing company, automation testing services teams may face this type issue related to focusing a webElement. This can be done by doing mousehover actions by selenium or by java script. Below is one way of getting the focus on webElement: C#: ((IJavaScriptExecutor)webDriver).ExecuteScript("arguments[0].scrollIntoView(true);", webElement); ...


1

https://www.w3schools.com/jsref/met_html_click.asp click() is an action but hover() is a event , so calling hover over the element doesn't do anything . It is used define what should happen when user hovers over the element. Using action class is the best way , but still if you want to use javascript use: arguments[0].focus() Note: in the example the link ...


1

Basic Auth via url was deprecated and even removed in some version of chome. But then they revert this functionality back and now you can use it.


1

i raised a similar protractor issue on this , the issue seems like if you give a input say "one" to textbox 'A' then you clear text box 'A' and then sends input to textbox 'B' and then sends input say "two" again to textbox 'A', A will get the value onetwo If you immediately use sendKeys after using clear() , everything works fine. if you give an input ...


1

According to you statement, it looks like clear fails to clear field. Can you try to add following code into the automation to clear up field and test it with it? static String getValueFromElement(WebElement locator) { return tryFindElement(locator).getAttribute("value") } This method above will return you the what's written in the element. ...


1

Make sure that before sending the text,filed is clearing properly. add assert before sendkeys to make sure that text field is empty


1

Take a look at the following example of caps object in capabilities which I use on my tests: { 'automationName'=> 'Appium', 'browserstack.appium_version' => '1.11.1', 'project' => 'my-project-name', 'build' => "1.5.15", 'name' => "#{scenario.name}", 'device' => 'Google ...


1

Doesn't seem to be documented online currently, I would contact support and ask them. I came up with a work around, but feels like a bit of hassle: Download the file in the tests Browse to a file upload site your test can access, for example AWS S3, Google Drive, etc. Upload the file again Download the file with from the upload service in your test-code ...


1

This feature is only part of Browserstack's Enterprise plan, and not their Live, Automate Pro, or Automate Mobile plans. If you're on the Enterprise plan, then you're better off asking Browserstack directly.


Only top voted, non community-wiki answers of a minimum length are eligible