Questions tagged [selenium]
The selenium tag has no usage guidance.
49
questions
0
votes
0
answers
43
views
Does early adoption of adding "Aura local ID's" to element attributes make for more Automation friendly, Lightning components?
My company is migrating to Salesforce and the automation team wants the ability to use Java Selenium baked in. Will the system-wide inclusion of Aura Local IDs (as related to Component ID's Link) ...
0
votes
0
answers
215
views
Selenium with Python - Testing Salesforce Oppurtunity - Not Working
I'm trying to Automate the basic click on Opportunity Tab Functionality on my Salesforce Page.
Below is the code,
import time
from selenium import webdriver
from selenium.webdriver.chrome.options ...
1
vote
1
answer
896
views
How to simulate sfdx:force:org:open?
I want to write few automation that will run on cli and use sfdx force:org:open. How do I simulate the command?
The automation needs the url that sfdx... command leads to in the browser.Example I want ...
0
votes
1
answer
376
views
Salesforce Lightning - Selenium UI Tests- Locate element | Locate element from frame source
I am using Selenium and Java for Salesforce UI test automation. On the Field Service page, Gantt chart and Service Appointment feature is there.
Both these features are in a frame source. While ...
3
votes
1
answer
453
views
Salesforce Lightning - Selenium UI Tests - Inspect element using Developer tools | DOM response/loading is very slow
I am working on Salesforce Lightning UI test automation using Selenium. While locating the elements, need to frequently open the Developer Tools section of Chrome/Edge and search for the locators (...
0
votes
1
answer
99
views
Is there any solution for easy maintenance of Selenium automation scripts for testing Salesforce?
Whenever there is salesforce upgrade, the Xpaths of lot of web elements get effected. This causes us to maintain them. Is there any better solution to this problem?
I have found a solution for input ...
0
votes
1
answer
297
views
Selenium Lightning test failure of not finding "one-app-nav-bar-item-root"
We are looking at some Java Selenium/Selenide tests that we have taken over and running those we more or less fail at the first hurdle in this tagToGo method:
public void goToTab(String value) {
...
1
vote
1
answer
180
views
Update an object - SOAP API /Selenium Java
I've faced an issue. I'm trying to create a method to update a requirement in Salesforce. (I'm using Selenium - Java) and I have the following error. " The method update(com.sforce.soap....
0
votes
2
answers
214
views
Salesforce Dom dynamic behaviour
Last week the structure is with li elements and now the HTML structure is changed. This is for Salesforce Contacts object.Please see the image.
<div id="suggestionsList">
<ul&...
0
votes
1
answer
163
views
Salesforce lightning components qa automation [closed]
I am new to Salesforce testing, we have an automation suite written with protractor currently and its working fine with classic version of sf.
However now most of the new requests are towards ...
0
votes
1
answer
321
views
I want to auto-populate rich text area field using selenium webdriver java
I am getting "element not interactable" using sendKeys() have tried using explicit wait so it is giving stale element error. I am able to auto-click using js.executeScript("arguments[0]....
0
votes
0
answers
61
views
What is the best way to do Automation?
I'm running into issues with Cypressio and Selenium, and I'm pretty new to automation testing within Salesforce. What is the best thing to do? How to do it? & what are the tools that you recommend ...
0
votes
0
answers
43
views
How can I get a list of fields that I added to one form in Salesforce?
I'm pretty new to Salesforce and I'm wondering if there is a way to get all the fields and HTML elements that I'm using with those forms to do some future testing with cypress and selenium. Does ...
0
votes
1
answer
30
views
Lightning examples
I have been writing Java/Chromedriver/Selenium code to SQA some Salesforce (apptus) pages.
The project manager says they are going to Lighning in several months. I am trying to get a jump start on ...
2
votes
0
answers
405
views
Lighting web component UI testing with robotframework-selenium: Not able to interact with LWC element
I am trying to automate a page with LWC, But due to shadow DOM, I am able to interact with element.
Is there a way where we can interact with the element.
2
votes
1
answer
596
views
Salesforce mobile automation- Appium does not identify individual elements in WebView
We are using Selenium and Appium to automate salesforce mobile app on mobile devices. On Android devices Appium is not able to identify individual elements within Webview, entire screen is identified ...
0
votes
1
answer
231
views
scratch org is getting created on cci task run robot command
I am trying to run a robot test on CircleCI using the command cci task run robot, but it is creating the fresh org again as it executes.
I am using below commands,
venv/bin/cci flow run qa_org --org ...
0
votes
1
answer
2k
views
Element has an invalid reference error while pushing the code using CCI command
I am trying to push the code using cci flow run qa_org --org dev command, But it is giving me Element has an invalid reference error
Running command: sfdx force:source:push -u test-xxxxxxxxxxxx@...
0
votes
1
answer
315
views
How to push code to an org using a CCI command?
I am trying to run a robot test on CircleCI using the command cci task run robot, but it is creating the fresh org again as it executes.
How can I push the code to a newly created org?
This is the ...
1
vote
2
answers
1k
views
Selenium WebDriver and Developer Console
So I'm automating some different things with Selenium WebDriver in one of our orgs.
One of the more tricky ones has been interacting with the Execute Anonymous window inside of the developer console. ...
1
vote
1
answer
4k
views
How to pass multiple arguments to a test case using CumulusCI?
Problem statement:
Unable to pass multiple variable values to my test case using CumulusCI command:
cci task run robot...
Sample Code:
*** Settings ***
Resource C:/Dev/myproject/robotframework/...
1
vote
1
answer
431
views
Populate Contact Information using Selenium
I am very new to Selenium. Basically i need to populate the fields below using selenium web-driver in Visual Studio. Because of the lightning components i am having trouble using XPath. Need help ...
0
votes
1
answer
98
views
How to implement "Get Locator" keyword from CumulusCI library?
Every implementation of Get Locator keyword I am trying is resulting into:
AttributeError: 'dict' object has no attribute 'format'`
please educate me with respect to the correct implementation and ...
0
votes
1
answer
289
views
WebElement which can be located in Classic mode but failing in Lightning mode using Selenium WebDriver
I am trying to automate Salesforce using Selenium WebDriver and so far I have faced many challenges and also overcame after following the suggestions provided in the community.
Here, I am facing a ...
0
votes
2
answers
5k
views
How to bypass the verification code when run test case from Selenium script?
I want to run my test case with Selenium script. But whenever I login with selenium it aways ask for verification code. I know I can do it using the Profile Id, but I want to do it with code. ...
-1
votes
2
answers
2k
views
Automation of salesforce Lightning pages using selenium
this question is related to provar automation tool which is used for salesforce automation so can you please let me know about the below comment which i get from from provar official website.
Generate ...
1
vote
1
answer
139
views
Using ids to identify page elemensts for UI testing with Selenium
We are using Selenium to test our UI and need to be able to find a reliable way to identify the elements of the page we are working with. I am working with a button and have defined an id to be able ...
2
votes
4
answers
4k
views
How to use Javascript to check if a salesforce lightning page is loaded completely
I am implementing selenium automated web tests on salesforce lightning page. Between different test steps, the test need wait until the web page is completely loaded, so that the web element is ...
1
vote
0
answers
230
views
Advantages of Cinnamon for UI test automation [closed]
We want to start automating our UI tests and have found Cinnamon that seems to be a better and more specific Salesforce testing tool. We want to use a testing tool for our managed package that has ...
17
votes
1
answer
2k
views
What do you use to automate the testing of your Lightning Components?
We've written some Lightning Testing Service tests but its been hard work given the asynchronous nature of the code and that the LockerService blocks access to the underlying DOM. I'm now wondering if ...
12
votes
1
answer
826
views
Testing Salesforce CPQ
I'm trying to create some meaningful tests for Salesforce CPQ. I'm trying to create Apex test classes and also UI tests with Selenium.
The problem with the apex tests is that a lot of the important ...
9
votes
1
answer
395
views
Does the LockerService make Selenium tests impossible?
When running Lightning Testing Service tests, the impact of the LockerService is evident such as not being able to see the DOM nodes of a lightning:... component (different namespace) wrapped by one ...
3
votes
0
answers
3k
views
How to bypass verification code for selenium testing
I am new to use selenium to test Salesforce. It seems to me it is opening browser in a completely new session which requires login and verification code. And I need to skip the verification code to ...
7
votes
3
answers
14k
views
How to Identify Elements in Salesforce Lightning for Selenium
I am trying to automate Salesforce lightning using Selenium, but getting issues with identifying elements.
Reason, its having dynamic IDs , and other attributes are either very long , or they are not ...
0
votes
2
answers
2k
views
How to test page layouts?
Functionality of some elements in the layout can be covered by unit tests. For example, in custom apex or visual force controllers.
However, those functions work independent from the layouts. Unit ...
1
vote
1
answer
583
views
Identify candidates for Selenium test automation?
Salesforce already uses both unit tests & Selenium to automate out-of-the-box features.
Our developers are covering their code with unit tests.
In order to avoid redundancy regarding the above, ...
0
votes
1
answer
1k
views
Unable to automate salesforce lightning components using selenium web driver
I have automated classis view in salesforce but in lightning view same elements are not recognizable by selenium webdriver. VF embedded controls are not recognizable in lightning mode
5
votes
0
answers
1k
views
Selenium testing the Lightning Experience
I'm new to SalesForce and trying to use Selenium to test a page.
When I check the "innerHTML" of a certain div (as selenium sees it), I see the following:
<div class="test-id" data-aura-rendered-...
1
vote
1
answer
155
views
.Net application to run Apex TC through tfs build system
I am currently automating a salesforce application using selenium and apex TC. We use the salesforce Soap api and enterprise wsdl for our DML and SOQL updates, queries, etc. We are also using the ...
2
votes
1
answer
618
views
Is there a webdriver for Apex?
A client has scheduled jobs that use the Selenium webdriver running on a desktop machine that, at scheduled intervals, screen scrape a number of websites (requiring login information) for data which ...
0
votes
2
answers
4k
views
drop down automate xpath clarification using selenium webdriver [closed]
Application developed in salesforce and below is the code for an dropdown box, all the items in the drop down they build with <li> tag, but i dont know how to pick a particular item with this ...
3
votes
2
answers
529
views
Salesforce selenium testing
My testing team is using selenium to automate salesforce testing,in the process, they reference the Id's of text boxe's or drop down boxes in the automation script,this works well and good for ...
3
votes
1
answer
2k
views
Automating Salesforce Console - Selenium ?
I'm just trying to figure out if anyone has successfully completed this.
From what I'm seeing id's are randomly generated and not static for each test run.
Causing issues identifying iframes on the ...
3
votes
6
answers
14k
views
Is there any way around Verification Code ? I am using Selenium and Java to Automate Test
I would like to know if there is any way around the Verification Code for Salesforce? I successfully login to Salesforce but, my script stops because of the Verification screen is there a way around ...
5
votes
6
answers
7k
views
Selenium Testing - Two Factor Authentication Problems
First time trying the forum, but today having trouble running selenium scripts with Salesforce.
Everytime Im running a script locally I get a two step verification screen.
I then have to input the ...
8
votes
4
answers
4k
views
UI-testing Salesforce apps with Selenium
Some aspects of our Salesforce apps can only be poorly tested or not tested at all with Apex Unit tests. Therefore we are currently investigating Java-based Selenium UI-tests.
Question 1: Are you ...
2
votes
1
answer
2k
views
REST Call from Selenium with session ID is invalid
I am trying to make REST call with Apache's HTTPClient. I would like to update a record after a selenium Test.
Cookie sessionId = driver.manage().getCookieNamed("sid");
PostMethod request = new ...
3
votes
2
answers
939
views
Are Force.com DOM id-elements worthless for Selenium Testing?
I just started with Saleforce/Force.com development. I set up a couple of Selenium tests last week, but they crashed today, since Salesforce upgraded to Version Winter '14 on my Dev Sandbox. My ...
2
votes
2
answers
584
views
Does any one configured jenkins & selenium for CI in force.com
Are there any tutorials for config jenkins which fires selenium to run tests.