Hey team,--I hope all is well with you.I am facing issue in grid .. HTML file not opening in grid.. Could you please share any solution?Thanks,Ashish
Kind Regards, Ashish Sharma--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA1dHedLsY7F_VNFVQ_Y38OCPq-%3DX78ORTSJ8DtOc%2BGo3x4UAQ%40mail.gmail.com.
Please find more information-1. We are running automation test scripts in Jenkins.2. We are using selenium + java framework .3. We are trying to use Gridlastic for running our scripts in parallel.4. Test step is to Download pdf , convert into HTML and then verify elements.5. Issue comes when we try to open HTML link using driver.get() .we need help at this Step.Please let me know if you need further information to proceed?Thanks,Ashish
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLmuD89O7m6ir%3Di9_bzLvyU4dcnqzpxZZ53cYopcT9HxvA%40mail.gmail.com.
--Kind Regards, Ashish Sharma--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA1dHefVydw%3DgaDqNRTA-Mic47B99frmp_f-rc0NSMxV4sm6FA%40mail.gmail.com.
Hey team ,Any update on this please?Thanks,AshishOn Mon, 1 Mar 2021 at 10:44, ashish sharma <a.sharm...@gmail.com> wrote:Hi krishnan,Yes all your points are correct. Please find below automation code used to convert downloaded PDF into HTML. Looks like this code is working and pdf is converted into HTML .But I can not open the HTML file. Hope it's clear now and let me know if you have any solution?File pdfFile = new File(pdfLocation);
System.out.println("pdfFile "+pdfFile);
System.out.println("pdfFile "+pdfFile.getName());
PDDocument pdf = null;
try {
pdf = PDDocument.load(pdfFile);
} catch (IOException e) {
e.printStackTrace();
}
Writer output = null;
try {
output = new PrintWriter(htmlLocation, "utf-8");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
try {
new PDFDomTree().writeText(pdf, output);
} catch (IOException e) {
e.printStackTrace();
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3DKx6e%2BOj2rGxcKh0Es2-CQV-txUqV7fOaKc8O1yD818A%40mail.gmail.com.
--Kind Regards, Ashish Sharma--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA1dHee%3DAqNBO-0OpHurm5qWuqs-wssSbYZ6GQp4h%3DG1wmeRAg%40mail.gmail.com.
Hey, it does Not work on my local system as well when I use/ enable grid.when I don’t use grid, My script works fine both on my local system and on server using Jenkins.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAGobDiH71s83nwmnJL_0nLtkg9ZTTpU39MhWOQGt9jhJJoZr6w%40mail.gmail.com.
--Kind Regards, Ashish Sharma--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA1dHecO4MMvVF6jHdLaiydMHj%3DAK7e6Q_dUsOOPT3RS%2BWGETA%40mail.gmail.com.
Krishnan,Do you have any solution ? it looks like you keep asking questions instead of helpingPlease find entire code below-afPage.iDownloadReport();
afPage.iOpenHtmlReport(ReportFileName.FSBM);@Step("I download Report")
public void iDownloadReport() {
clickReportLink(ReportLinks.FSBM.getlistOptions());
navigateTo(getBaseURL() + "/apex/Report");
waitForInvisibility(loadingSpinner);
}@Step("I Click Report Link")
public void clickReportLink(String report){
waitForInvisibility(selectListViewDropdown);
refreshPage();
waitForInvisibility(selectListViewDropdown);
WebElement reportLink = driver.findElement(By.xpath("//a[@id='" + report + "']"));
jsClick(reportLink);
waitForInvisibility(selectListViewDropdown);
}@Step("I open the converted HTML report")
public void iOpenHtmlReport(ReportFileName fileName){
openHtmlReport(fileName.getlistOptions());
}public void openHtmlReport(String reportName) {
waitForInvisibility(loadingSpinner);
try {
waitForInvisibility(loadingSpinner);
pdfToHTML(downloadDirectory + reportName + ".pdf", downloadDirectory + reportName + ".html");
} catch (IOException | ParserConfigurationException e) {
e.printStackTrace();
}
String path = downloadDirectory + reportName + ".html";
driver.get("file://" + path);
}public static String pdfToHTML(String pdfFilename, String htmlFilename) throws ParserConfigurationException, IOException {
String pdfLocation = pdfFilename;
String htmlLocation = htmlFilename;
File pdfFile = new File(pdfLocation);
PDDocument pdf = null;
try {
pdf = PDDocument.load(pdfFile);
} catch (IOException e) {
e.printStackTrace();
}
Writer output = null;
try {
output = new PrintWriter(htmlLocation, "utf-8");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
try {
new PDFDomTree().writeText(pdf, output);
} catch (IOException e) {
e.printStackTrace();
}
pdf.close();
output.close();
pdfFile.delete();
System.out.println(htmlLocation);
return htmlLocation;
}
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3Doo28RZDNzfO1SmhoYB%3Duer2YS7Guc0tLgydgwh%2BnyHA%40mail.gmail.com.
Krishnan,You don’t have any solution that’s the real reason that you want to step side. Let’s be authentic here.Stop blame game. If you don’t know that’s fine but atleast accept it and move on.Disheartening to see your unprofessional and rude behaviour.After multiple follow ups What I get is more questions instead of any answer.Thanks!
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b6753554-9e10-4fc0-9206-cbadbbfbbcc6%40gmail.com.
@Step("I Click Report Link")
public void clickReportLink(String report){
waitForInvisibility(selectListViewDropdown);
refreshPage();
waitForInvisibility(selectListViewDropdown);
WebElement reportLink = driver.findElement(By.xpath("//a[@id='" + report + "']"));
jsClick(reportLink);
waitForInvisibility(selectListViewDropdown);
}
afPage.iDownloadReport();
@Step("I download Report")
public void iDownloadReport() {
clickReportLink(ReportLinks.FSBM.getlistOptions());
navigateTo(getBaseURL() + "/apex/Report");
waitForInvisibility(loadingSpinner);
}
@Step("I Click Report Link")
public void clickReportLink(String report){
waitForInvisibility(selectListViewDropdown);
refreshPage();
waitForInvisibility(selectListViewDropdown);
WebElement reportLink = driver.findElement(By.xpath("//a[@id='" + report + "']"));
jsClick(reportLink);
waitForInvisibility(selectListViewDropdown);
}
Long story short.. if you have solution what’s stopping you to provide?What else information you need from me?To be honest I don’t have solution that’s why I am reaching out to multiplepeople.You invited me to join this forum. I didn’t know even this forum existed.If you have invited me here, then talk with respect.If you can’t talk respectfully and I don’t get solution to problem, I have to leave this forum for good.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/744305ca-2e7f-4703-afad-dd800147967d%40gmail.com.
--Kind Regards, Ashish Sharma--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA1dHechPt5texXvybJvaW1M0nuFf-YC%2Bc0dU13qT0zVsA%3DOEQ%40mail.gmail.com.
Krishnan,Stop beating around the bush And stop wasting my time and energy if you don’t know basics.If you don’t have technical capability to resolve this , ACCEPT it. Stop sending rubbish questions ,replies and irrelevant links.We can have screen share and discuss over call if you are mature sensible professional and really have solution.I will still reply to your questions-Yes I am clicking a report, and it is the actual PDF report.We are checking pdf content only after converting into HTML and not before that.The code that I shared with you actually downloads pdf , convert into HTML and opens it.If you don’t understand simple selenium code then no worries you can still learn . May be you are novice person and trying to Learn seleniumAnd out of interest trying to solve other people query. But you are really pain in the ***
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3DWt2%3DAHujmm6Eaw2%2BBN70mGRT9moVm%2B%3D4agSQTn51vhg%40mail.gmail.com.
--Kind Regards, Ashish Sharma--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA1dHeeXNJY%2BUvH7Oq%3DJOixqOyRRD0EK7mjCHEjcdMh4wb_RUQ%40mail.gmail.com.
Hey Sachin,Why are you interfering in between?Mind your own business.. I can invite you both to call . Let me know and I will send meeting link.But I know you won’t join call Because you are here to waste others time and write irrelevant stuff.If krishnan had resolved other issues then it does not mean he is able to help or resolve the issue.Sorry truth of matter is he has not provided any useful information to resolve this issue.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAE6p%3DWWs8wkwUNe%3DR05abV7vGt-%2Bnhv4GaMFB0%2BHuXsCM3oS3w%40mail.gmail.com.
--Kind Regards, Ashish Sharma--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA1dHec7chKf5H1f_U91vHgfp8B7sK73fKYvFVNFnZrzcBWYiQ%40mail.gmail.com.
What attitude? I won’t take shit from any one here. If you provide solution then talk to me.If someone keeps asking questions and not provide any solution then yes I am human and I will feel frustrated that my time and energy is wasted here.Look at yourself, you know nothing about matter , what’s happening Here, why somebody is writing here?You Come out of no where and start writing stupid things , why ? Is it you guys you can write and others are fool you can’t stand for themselves?
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAE6p%3DWWF1Q2XRDEyL%2BEbZXDaLveyVJHXNWTyq1whWn1i%2B%3DNqzQ%40mail.gmail.com.
Fuck off you bastards...To hell with your shitty group and you As well..