Development

This is my code:

package dateTime;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;

public class GetCurrentDateTime {

public static void main(String[] args) {

LocalDate localDate = LocalDate.now();
String date = DateTimeFormatter.ofPattern(“yyyy/MM/dd”).format(localDate);
log.info(“The date is “+date);
vars.put(“currentDate”,date);

}

}

I tried above code in beanshell, JSR223 pre-processor or post processor but not able to use it further.

I’m working in multiple browser testing. It was working code with chrome browser. Recently I have installed “Install-Package Selenium.WebDriver -Version 4.0.0-alpha04”.
MSedge Chromium and chrome working in setup method, But while navigate/return back to actual [Test] test method encountered the below error.

Error:Message: System.TypeLoadException : Could not load type
‘OpenQA.Selenium.Internal.IWrapsElement’ from assembly ‘WebDriver,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’

Is this dll/package confused
[SetUp]
public void Setup()
{
string Browsername = “Chrome”;
switch (Browsername)
{
case “Chrome”:
driver = new ChromeDriver();
}
}

[Test]
[Obsolete]
public void XXXX()
{
try
{
driver.Navigate().GoToUrl(UrlList.XXXX_Login);
driver.Manage().Timeouts().ImplicitWait (TimeSpan.FromSeconds(200));
driver.Manage().Window.Maximize();
Login login = new Login(driver);
login.PerformLogin(Login.email_id1, Login.pswd1);
}
}

I am attempting to click a save button but Selenium (with Python) is having issues. I keep getting the error, “Message: no such element: Unable to locate element”
Here is the HTML
<input type=”submit” name=”action[save]” class=”FixedRight SPSubmitRequest button save-button disabledsubmit” value=”Save”>

And the XPath
//*[@id=”spsisFunctionJSAutoFormID12″]/table/tbody/tr/td[3]/input

I have attempted the following to no avail
driver.find_element_by_xpath(‘//*[@id=”spsisFunctionJSAutoFormID12″]/table/tbody/tr/td[3]/input’).click()

driver.find_element_by_class_name(‘FixedRight SPSubmitRequest button save-button disabledsubmit” value’).click()

driver.find_element_by_xpath(‘//button[@name=’Save’].click()

None of these work and all produce the same error

Getting error as 2024-03-06T14:40:10.8848644Z jmeter -g Results.jtl -o htmlReport
2024-03-06T14:40:10.9326661Z ========================== Starting Command Output ===========================
2024-03-06T14:40:10.9654622Z ##[command]”C:Windowssystem32cmd.exe” /D /E:ON /V:OFF /S /C “CALL “D:a_temp6ddde4de-8a4f-43bd-873a-a69bbf34b8cd.cmd””
2024-03-06T14:40:12.6419288Z An error occurred: Cannot read test results file : Results.jtl
2024-03-06T14:40:12.6858284Z errorlevel=1
2024-03-06T14:40:12.6863140Z Press any key to continue . . .
2024-03-06T14:40:12.7701636Z ##[error]Cmd.exe exited with code ‘1’.
In Azure Pipeline

could anyone please help me