Libraries & Frameworks

I’m manual QA with 3 years of experience. At the same time I’ve learnt some automation and wrote autotests on java for selenium-based framework on the previous job. I decided to get more knowledge of automation, chosen YouTrack API to write some API test project, chosen domestic site to write some website test project with Selenium. Now I’m looking for a way to find real-life project to contribute to instead of writing something useless.
What I tried:

search on github for something like “qa automation” with label “help wanted”: nothing from mature projects, tons of irrelevant items from one-day projects.
reading of quora, stackexchange and similar: in fact there were couple of live projects, but not for java automation.
Also it leads me to different projects from Mozilla, Apache foundation, Selenium. But after diving to their contribution pages I found that opportunities for writing of autotests are obsolete or not explicitly mentioned.

The only abstract option, which I found and consider to be realistic, is to find some open-source project with badly covered API and to propose patch with autotests for it. But still don’t know any good particular project for it.
So would be glad to get any help. Especially recommendations of projects for writing of java autotests via WebDriver (or other tool), for API or just unit-tests.

I want to compare my data in CSV with the web content. The data in CSV file comprises of multiple rows and column. How can I verify that the data inputted on the web is correct comparing it with the CSV using Jmeter?

There is a search bar on the website I write any character I get the location of particular dealers along with the details and I have data in CSV and now I want to compare the data entered on the web is correct or not

EDIT: the data on the web is called through AJAX.

For single web element in that row i got index..for multiple column in a single row how to get the index:

IWebElement colelement = driver.FindElement(By.XPath(“//div[@id=’grdBooking’]//table//tr/
th[contains(text(),’Case#’)]”));
String colidx = colelement.GetAttribute(“idx”);
Console.WriteLine(“Colelement index is =” + colidx);

I have a Website were I want to click a button, but I can’t find in the button in the HTML script, what I have to write in my Python script?
Later I want to have something like

driver.find_element_by_css_selector()

Now I don’t know what I have to put in there

<div class=”custom-col” onclick=”Ajax(‘routes.php’,’main’);mainMenuLoad(‘mainMenuRoutes’);” style=”width: 20%;”>
<img src=”assets/img/icons/route-icon-shade.png” class=”btn-action” id=”mainMenuRoutes” style=”height:40px;”>
</div>

I hope you understood my question because I am not a native speaker

When I hover over login text there are list of links, i need to select Infostore using Page Object model approach. I am new to Selenium could any one help. I have the outer HTML for you:

<div class=”desktop-login”>
LOGIN
<ul class=”no-bullet list-nav-child sub-menu-lv”>
<li class=”nav-child-item”>
<a href=”https://infostore.saiglobal.com/”>Infostore</a>
</li>
</ul>
</div>

How to fetch text for

<h1 _ngcontent-gtj-c13=””> Site-2
<span _ngcontent-gtj-c13=”” class=”seprator”>|</span>
Building-1 <!—-> </h1>

I have used attribute innerhtml,value,outerhtml,javascript
Not able to fetch site name with building name

getting text= Site-2 |
expected = Site-2 | Building-1

Folksm I’m using TestNG 7.5 and Selenium 4.2.2, with IntelliJ and Java 11.
I’ve got all my bits imported and my tests will run individually, but I’m trying to get my setup and cleanup methods to work with the before and after annotations. Here’s a code sample:
public static class RunTest {
WebDriver driver;
WaitUtils waitUtils;
Actions actions;
StateUtils stateUtils;

public RunTest(WebDriver givenDriver){
this.driver = givenDriver;
this.actions = new Actions(givenDriver);
this.waitUtils = new WaitUtils(givenDriver);
this.stateUtils = new StateUtils(givenDriver);
}

@BeforeMethod(alwaysRun = true)
public void login(){
System.out.println(“test_++++++++++++”);
boolean firstLoginPageFound = true;

driver.navigate().to(“http://www.amazon.ca”);
InteractionUtils interactionUtils = new InteractionUtils(driver);
try{
interactionUtils.clickOnElementByXpath(“//div[@class=’nav-bb-right’]/a[text()=’Your Account’]”);
} catch (NoSuchElementException e){
firstLoginPageFound = false;
}

interactionUtils.clickOnElementByXpath(“//span[@id=’nav-link-accountList-nav-line-1′]”);

byte[] decodedBytes = Base64.getDecoder().decode(“”);

waitUtils.waitForVisibilityOfLocator(“//input[@id=’ap_email’]”).sendKeys(new String(decodedBytes));

interactionUtils.clickOnElementByXpath(“//input[@id=’continue’]”);

decodedBytes = Base64.getDecoder().decode(“”);
waitUtils.waitForVisibilityOfLocator(“//input[@id=’ap_password’]”).sendKeys(new String(decodedBytes));

interactionUtils.clickOnElementByXpath(“//input[@id=’signInSubmit’]”);
}

@Test
public void checkLandingPage(){
System.out.println(“REST++++++++++++”);
Assert.assertTrue(stateUtils.verifyElementIsVisible(“//div[@id=’nav-xshop’]//a[contains(@class, ‘nav-a’) and text()=’Buy Again’]”), “Buy again button is missing”);
}

@AfterMethod(alwaysRun = true)
public void cleanUp(){
System.out.println(“BEST++++++++++++”);
driver.close();
}
}

If I run something like:
RunTest test = new RunTest(new SetUpUtils().getDriver());
test.checkLandingPage();

the checkLandingPage method will run, and fail, but the login and cleanup methods won’t run. I’ve tried a few variations on the annotations, but no luck so far.
The imports used are :
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.interactions.Interaction;
import org.openqa.selenium.support.ui.*;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.time.Duration;
import java.util.Base64;

I’m trying to launch a simple web application test using Appium, using AVD. I’m using eclipse, and the android studio emulator. I included all the packages. I would like to make sure about the capabilities I used concerning the device name because in the AVD the device name is: ‘Nexus6API24’ but when I type the command adb devices I’m getting:

List of devices attached:

emulator-5554 device
product:sdk_google_phone_x86
model:Android_SDK_built_for_x86
device:generic_x86

Could someone explain the source error?

This is the java code I used:

package com.example;

import java.net.MalformedURLException;
import java.net.URL;

import org.openqa.selenium.By;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.BrowserType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabilityType;

public class FirstAppiumTest {

// create instance for appium driver
AppiumDriver<WebElement> driver;
@Test

public void Setup() throws MalformedURLException
{
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(MobileCapabilityType.BROWSER_NAME,BrowserType.CHROME);
cap.setCapability(MobileCapabilityType.PLATFORM,Platform.ANDROID);
cap.setCapability(MobileCapabilityType.PLATFORM_NAME,”Android”);
cap.setCapability(MobileCapabilityType.DEVICE_NAME, “emulator-5554”);
//cap.setCapability(“AVD”, “emulator-5554”);
driver = new AndroidDriver<WebElement>(new URL(“http://127.0.0.1:4723/wd/hub”), cap);
driver.get(“http://www.facebook.com”);
System.out.println(“Title “+driver.getTitle());
driver.findElement(By.name(“email”)).sendKeys(“mukesh@gmail.com”);
driver.findElement(By.name(“pass”)).sendKeys(“mukesh_selenium”);
driver.findElement(By.id(“u_0_5”)).click();
driver.quit();

}

}

And I’m getting this error in eclipse ;

[TestNG] Running:
C:UsersghabrAppDataLocalTemptestng-eclipse–1101744164testng-customsuite.xml

[TestNG] Running:
C:UsersghabrAppDataLocalTemptestng-eclipse–1101744164testng-customsuite.xml

Feb 12, 2017 6:26:49 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
Feb 12, 2017 6:26:49 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
FAILED: Setup
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: ‘3.0.1’, revision: ‘1969d75’, time: ‘2016-10-18 09:48:19 -0700’
System info: host: ‘LAPTOP-O6MJ7FC6’, ip: ‘192.168.251.2’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: AndroidDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:161)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:128)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:72)
at com.example.FirstAppiumTest.Setup(FirstAppiumTest.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
FAILED: Setup
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: ‘3.0.1’, revision: ‘1969d75’, time: ‘2016-10-18 09:48:19 -0700’
System info: host: ‘LAPTOP-O6MJ7FC6’, ip: ‘192.168.251.2’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: AndroidDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:161)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:128)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:72)
at com.example.FirstAppiumTest.Setup(FirstAppiumTest.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:756)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)

===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================

===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================

[TestNG] Time taken by org.testng.reporters.jq.Main@82de64a: 38 ms

===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================

===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================

[TestNG] Time taken by org.testng.reporters.jq.Main@82de64a: 38 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@47e2e487: 740 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 20 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@1151e434: 6 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@47e2e487: 740 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 20 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@1151e434: 6 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@4efac082: 480 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@4efac082: 480 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@13fd2ccd: 17 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@13fd2ccd: 17 ms

And this is the log messages in Appium :

> info: –> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“browserName”:”chrome”,”platformName”:”Android”,”deviceName”:”emulator-5554″,”platform”:”ANDROID”},”requiredCapabilities”:{}},”desiredCapabilities”:{“browserName”:”chrome”,”platformName”:”Android”,”deviceName”:”emulator-5554″,”platform”:”ANDROID”},”requiredCapabilities”:{}}
> error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress
> info: Client User-Agent string: Apache-HttpClient/4.5.2 (Java/1.8.0_121)
> info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : platform
> info: Set mode: Proxying straight through to Chromedriver
> info: [debug] Looks like we want chrome on android
> info: [debug] Creating new appium session 960dfc32-859d-4586-9cc6-6bd96e0e2815
> info: [debug] Checking whether adb is present
> info: [debug] Using adb from C:UsersghabrAppDataLocalAndroidsdkplatform-toolsadb.exe
> info: [debug] Using fast reset? false
> info: [debug] Preparing device for session
> info: [debug] Not checking whether app is present since we are assuming it’s already on the device
> info: Retrieving device
> info: [debug] Trying to find a connected android device
> info: [debug] Getting connected devices…
> info: [debug] executing cmd: C:UsersghabrAppDataLocalAndroidsdkplatform-toolsadb.exe devices
> info: –> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“browserName”:”chrome”,”platformName”:”Android”,”deviceName”:”emulator-5554″,”platform”:”ANDROID”},”requiredCapabilities”:{}},”desiredCapabilities”:{“browserName”:”chrome”,”platformName”:”Android”,”deviceName”:”emulator-5554″,”platform”:”ANDROID”},”requiredCapabilities”:{}}
> info: Client User-Agent string: Apache-HttpClient/4.5.2 (Java/1.8.0_121)
> info: [debug] Error: Requested a new session but one was in progress
> at [object Object].Appium.start (C:Program Files (x86)Appiumnode_modulesappiumlibappium.js:139:15)
> at exports.createSession (C:Program Files (x86)Appiumnode_modulesappiumlibservercontroller.js:188:16)
> at Layer.handle [as handle_request] (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterlayer.js:82:5)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:110:13)
> at Route.dispatch (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:91:3)
> at Layer.handle [as handle_request] (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterlayer.js:82:5)
> at C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:267:22
> at Function.proto.process_params (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:321:12)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:261:10)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:100:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at C:Program Files (x86)Appiumnode_modulesappiumlibservercontroller.js:39:7
> at Layer.handle [as handle_request] (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterlayer.js:82:5)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:110:13)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:104:14)
> at Route.dispatch (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterroute.js:91:3)
> at Layer.handle [as handle_request] (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterlayer.js:82:5)
> at C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:267:22
> at Function.proto.process_params (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:321:12)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:261:10)
> at methodOverride (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesmethod-overrideindex.js:79:5)
> at Layer.handle [as handle_request] (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterlayer.js:82:5)
> at trim_prefix (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:302:13)
> at C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:270:7
> at Function.proto.process_params (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:321:12)
> at next (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:261:10)
> at logger (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesmorganindex.js:136:5)
> at Layer.handle [as handle_request] (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterlayer.js:82:5)
> at trim_prefix (C:Program Files (x86)Appiumnode_modulesappiumnode_modulesexpresslibrouterindex.js:302:13)
> info: [debug] Responding to client with error: {“status”:33,”value”:{“message”:”A new session could not be created. (Original error: Requested a new session but one was in progress)”,”origValue”:”Requested a new session but one was in progress”},”sessionId”:”960dfc32-859d-4586-9cc6-6bd96e0e2815″}
> info: <– POST /wd/hub/session 500 5841.676 ms – 250
> info: [debug] 1 device(s) connected
> info: Found device emulator-5554
> info: [debug] Setting device id to emulator-5554
> info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
> info: [debug] executing cmd: C:UsersghabrAppDataLocalAndroidsdkplatform-toolsadb.exe -s emulator-5554 wait-for-device
> info: [debug] executing cmd: C:UsersghabrAppDataLocalAndroidsdkplatform-toolsadb.exe -s emulator-5554 shell “echo ‘ready'”
> info: [debug] Starting logcat capture
> info: [debug] Pushing unlock helper app to device…
> info: [debug] executing cmd: C:UsersghabrAppDataLocalAndroidsdkplatform-toolsadb.exe -s emulator-5554 install “C:Program Files (x86)Appiumnode_modulesappiumbuildunlock_apkunlock_apk-debug.apk”
> info: [debug] Cleaning up appium session
> error: Failed to start an Appium session, err was: Error: Command failed: Failed to install C:Program Files (x86)Appiumnode_modulesappiumbuildunlock_apkunlock_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.unlock without first uninstalling.]
>
> info: [debug] Error: Command failed: Failed to install C:Program Files (x86)Appiumnode_modulesappiumbuildunlock_apkunlock_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.unlock without first uninstalling.]
>
> at ChildProcess.exithandler (child_process.js:637:15)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at maybeClose (child_process.js:743:16)
> at Socket.<anonymous> (child_process.js:956:11)
> at Socket.EventEmitter.emit (events.js:95:17)
> at Pipe.close (net.js:465:12)
> info: [debug] Responding to client with error: {“status”:33,”value”:{“message”:”A new session could not be created. (Original error: Command failed: Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.unlock without first uninstalling.]rn)”,”killed”:false,”code”:1,”signal”:null,”origValue”:”Command failed: Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.unlock without first uninstalling.]rn”},”sessionId”:null}
> info: <– POST /wd/hub/session 500 26332.143 ms – 642

My Problem

I’m trying to automate a login/logout test to my website using Selenium IDE and I’m facing a problem while trying to verify a value displayed in the page.
In my test I first verify the title of the page using “store title” and then “verify” with the target “title” and the name of my website name in “value” and it works correctly.
However, when I want to verify a random string in my website which is in a span like that I’m facing an issue. (there’s no other way in the website to see the username we used to connect)
<span style=”font-weight:bold;”>admin</span>

I didn’t find anything that could allow me to store the value which is not in the span directly with a tag like “value=admin” or “username=admin” where I could use “store attribute” for example.
What I tried

Also, I tried using the “store text” command using “Select target in page” (it gives me : css=span:nth-child(3)) and then click on the text and associate it with value “admin” but when I try to verify that the target “admin” equals to value “admin” it says : “Actual value ” did not match ‘admin'”
Similar Question

Similar but uses Selenium Webdriver : How can I get the value from span class in selenium?