Пікірлер
@AKASHKUMAR-t9y7u
@AKASHKUMAR-t9y7u 6 сағат бұрын
Hi sir Code is Working but creating Empty file package Programming; import java.io.File; import java.io.IOException; import java.util.EnumSet; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Proxy; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import io.github.bonigarcia.wdm.WebDriverManager; import net.lightbody.bmp.BrowserMobProxy; import net.lightbody.bmp.BrowserMobProxyServer; import net.lightbody.bmp.core.har.Har; import net.lightbody.bmp.proxy.CaptureType; public class AkashHar { public static void main(String[] args) throws IOException { // Start the proxy on some port BrowserMobProxy myProxy = new BrowserMobProxyServer(); myProxy.start(0); // Set SSL and HTTP proxy in SeleniumProxy Proxy seleniumProxy = new Proxy(); seleniumProxy.setHttpProxy("localhost:" + myProxy.getPort()); seleniumProxy.setSslProxy("localhost:" + myProxy.getPort()); // Add Capability for PROXY in DesiredCapabilities DesiredCapabilities capability = new DesiredCapabilities(); capability.setCapability(CapabilityType.PROXY, seleniumProxy); capability.acceptInsecureCerts(); capability.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true); // Set captureTypes EnumSet<CaptureType> captureTypes = CaptureType.getAllContentCaptureTypes(); captureTypes.addAll(CaptureType.getCookieCaptureTypes()); captureTypes.addAll(CaptureType.getHeaderCaptureTypes()); captureTypes.addAll(CaptureType.getRequestCaptureTypes()); captureTypes.addAll(CaptureType.getResponseCaptureTypes()); myProxy.setHarCaptureTypes(captureTypes); // HAR name myProxy.newHar("MyHAR"); // Start browser and open URL WebDriverManager.chromedriver().setup(); ChromeOptions options = new ChromeOptions(); options.merge(capability); WebDriver driver = new ChromeDriver(options); driver.manage().window().maximize(); // Print Driver Capabilities System.out.println("Driver Capabilities===> " + ((RemoteWebDriver) driver).getCapabilities().asMap().toString()); // Navigate to the URL driver.get("main.dvl.amp.vg/"); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); // Perform actions driver.findElement(By.xpath("//input[@id='email']")).sendKeys("akshay0"); driver.findElement(By.xpath("//input[@id='password']")).sendKeys("Skyson@420"); driver.findElement(By.xpath("//button[@id='btnLogin']")).click(); // Wait for a bit to allow requests to finish try { Thread.sleep(5000); // Adjust the time based on your application's response time } catch (InterruptedException e) { e.printStackTrace(); } // Get HAR data Har har = myProxy.getHar(); if (har == null || har.getLog().getEntries().isEmpty()) { System.out.println("No entries in HAR. Make sure requests were made."); } else { // Create directory if it doesn't exist File harFolder = new File(System.getProperty("user.dir") + "/MyHARFolder"); if (!harFolder.exists()) { harFolder.mkdirs(); } // Write HAR data to file File myHARFile = new File(harFolder, "Main1.har"); har.writeTo(myHARFile); System.out.println("==> HAR details have been successfully written to the file: " + myHARFile); } // Cleanup myProxy.stopProxy(); driver.quit(); } }
@priteshkhambekar
@priteshkhambekar Күн бұрын
Nice explanation. Just one thing do we have any video that demonstrate how we can store ExtenetReport into S3 bucket? Thanks
@AJAUTOMATION
@AJAUTOMATION 6 сағат бұрын
No @pritesh I don't have any video for that, Not worked on it yet
@priteshkhambekar
@priteshkhambekar 6 сағат бұрын
@@AJAUTOMATION Okk No Problem. You are doing the awesome work. This is the actual thing teams need to learn and implement in project.
@IMPUJA
@IMPUJA Күн бұрын
Thank you :) video was really helpful
@AJAUTOMATION
@AJAUTOMATION 22 сағат бұрын
Welcome.. 👍 Happy to see that video helped you 🙂
@willianpeixoto4953
@willianpeixoto4953 3 күн бұрын
After spending over 6 hours looking for a solution to this problem, I found your video. Congratulations on your attention to detail (that's what helped me solve my problem) and your teaching approach. 🙂
@AJAUTOMATION
@AJAUTOMATION 3 күн бұрын
Happy to see that video helped you 🙂👍
@rahilkumar3558
@rahilkumar3558 5 күн бұрын
Any idea how to pass this in gradle java?
@AJAUTOMATION
@AJAUTOMATION 4 күн бұрын
I haven't tried for gradle yet. You may try with Property flag -Pnameofproperty=value
@SashaBelovw
@SashaBelovw 11 күн бұрын
is this same for macos system
@AJAUTOMATION
@AJAUTOMATION 10 күн бұрын
Not tried on Mac yet, however I believe it should be same with vs code app and Git installed on Mac
@MaximBordyug.
@MaximBordyug. 11 күн бұрын
Thank you!
@AJAUTOMATION
@AJAUTOMATION 11 күн бұрын
Welcome 👍🙂
@swapnilbodade1336
@swapnilbodade1336 12 күн бұрын
What should be ideal config for 10 parallel thread. Thanks for informative video
@AJAUTOMATION
@AJAUTOMATION 12 күн бұрын
For 10 threads in parallel, we can use single ec2 with at least 16 / 32 gb RAM And 8 cpus. In the Selenium grid u can give every container a minimum of 2 / 3 gb ram and 1 cpu so that tests will run properly. Another approach we can try is to use 2 ec2 instances and distribute 5 tests per instance to balance the load. 5 tests on first and 5 tests on second instance will be easy, effective and again everything depends upon your budget as it costs more if we use ec2 with higher RAM and CPUs.
@prashinkasahu
@prashinkasahu 13 күн бұрын
For me the node containers are getting exited just after creating it or restarting it.please suggest
@AJAUTOMATION
@AJAUTOMATION 13 күн бұрын
It can happen due to various issues, could be due to insufficient memory or hub and node versions are not correct, check configuration again if nodes are registered with the hub or not. Try to use docker compose with correct configuration to setup grid with latest hub and node images
@automationtester19
@automationtester19 15 күн бұрын
Suggestion : it would be better if you can show one successful test and execute it and then add other tests. This will build confidence in the beginner audience.
@AJAUTOMATION
@AJAUTOMATION 13 күн бұрын
Thanks for suggestions 👍🙂
@automationtester19
@automationtester19 15 күн бұрын
can you please share the created code ?
@AJAUTOMATION
@AJAUTOMATION 12 күн бұрын
Plz chk - - - gitlab.com/ajautomation/amazon-automation
@poongodiarasu8079
@poongodiarasu8079 16 күн бұрын
Nice sir, thankyou....
@AJAUTOMATION
@AJAUTOMATION 15 күн бұрын
Welcome 🙂👍
@lekhashree7146
@lekhashree7146 16 күн бұрын
Very clear explanation. Thank you!!
@AJAUTOMATION
@AJAUTOMATION 16 күн бұрын
Welcome 🙂👍
@mimiky_y
@mimiky_y 17 күн бұрын
THANKSSSS SO MUCH!!💙💙 I was all over the place, and like I don't know what was going on. After following until the gitbash and ssh keys, I was able to follow through and figure out on my own. You were soooo good at explaining it. I was watching other tutorials, they were cool too but this was the exact thing I was looking for. Thanksss!
@AJAUTOMATION
@AJAUTOMATION 16 күн бұрын
Wonderful to hear that video helped you... Thnx for your feedback 🙂👍
@vikasmalik3182
@vikasmalik3182 18 күн бұрын
Can we add same stuff for git ci pipeline to provide manual input at manual run
@AJAUTOMATION
@AJAUTOMATION 16 күн бұрын
Not sure about this, how do you want to give input manually where we can provide while building the Jenkins job, pipeline should pick parameters values..
@fake22444
@fake22444 19 күн бұрын
great, thanks man
@YishengZeng-le1rp
@YishengZeng-le1rp 21 күн бұрын
when I did "git push origin master", it gave me back "fatal: unable to access gitlab/path: The requested URL returned error: 403", what should I do?
@AJAUTOMATION
@AJAUTOMATION 21 күн бұрын
That means u don't have necessary permissions to access the repo, so Plz try adding ur ssh key in the Gitlab account first before pushing the project.
@syedsaddadin1859
@syedsaddadin1859 23 күн бұрын
Thanks Bro. it worked well.
@AJAUTOMATION
@AJAUTOMATION 23 күн бұрын
Great 👍🙂
@mustafakarakaya76
@mustafakarakaya76 23 күн бұрын
I run docker on linux successfully desgned remotewebdriver I see the hub and nodes in grid but once I run chrome runs others not once I get logs for docker I am getttin below error Failed to export spans. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317 do you aware that error ?
@AJAUTOMATION
@AJAUTOMATION 20 күн бұрын
not came across such error yet, but You can try to reconnect hub and nodes with different new network and make sure port 4317 is open and accessible. Try to use Latest versions of Selenium/Hub and Nodes using docker compose yml file again.
@swapnilbodade1336
@swapnilbodade1336 27 күн бұрын
You are solving real world automation problem. Thanks for the great playlist.
@ghadatrabelsi3899
@ghadatrabelsi3899 28 күн бұрын
Hello , i applied all the cmds shell i installed docker i opened the localhost link but no nodes are visible i didint understand whats yhe pb ,if you can help me ? :(
@AJAUTOMATION
@AJAUTOMATION 28 күн бұрын
Please try running below commands one by one -( Before running any command, Make Docker Desktop Application / Engine is running on your system ) 1. docker network create grid4nw 2. docker run -d -p 4445:4444 --net grid4nw --name seleniumHub selenium/hub:4.0.0-rc-2-20210930 3. docker run -d -p 4446:5900 -p 4447:7900 --net grid4nw -e SE_EVENT_BUS_HOST=seleniumHub -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 --shm-size="2g" --name chromeNode1 selenium/node-chrome:4.0.0-rc-2-20210930 Now open - localhost:4445/ui/index.html#/ If still face issues , please email me with screenshots to assist you further.
@ramarao7393
@ramarao7393 Ай бұрын
Nice content and clearly explained .I have a question regarding when we dealing with screenshot handling like comparsion,we are getting below exception while comparing the screenshots with help of AWT. java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it Can you please share any inputs to resolve this.appreciate for urqucik reply and help.
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
For image comparison, have you tried the ashot library...
@Move_Further
@Move_Further Ай бұрын
Thanks a lot ...I tried hard to figure out what was actually wrong with the code for headless run. This explanation is really helpful 👍👍
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Great to hear! 🙂👍
@bishnuyashadash91
@bishnuyashadash91 Ай бұрын
I wanted to fetch the text that is in an Auto-suggestive textbox and this element in html doesn't have any attribute carrying that text. Not able to fetch using getText, getAttribute. Need help..
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Try to create the correct XPath for that element with * for tag and dot instead of text ().. And use inner text or inner html.. This might help..
@sandeepgupta6526
@sandeepgupta6526 Ай бұрын
We can not create jar file after follow all instruction , in export jar option not show, zip option display
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Could you please send me an email with screenshots so that it will be easy to understand the issue.. [email protected]
@venkateshy6041
@venkateshy6041 Ай бұрын
Thansk sir
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Welcome 👍🙂
@sampleuser4026
@sampleuser4026 Ай бұрын
Please share GitHub link for learning purpose
@AndrejLazic-m2l
@AndrejLazic-m2l Ай бұрын
You are truly a life saver
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Welcome, Thanks for watching 👍🙂
@arabtechnologytoday7322
@arabtechnologytoday7322 Ай бұрын
غCan I have the full code?
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Sure, will share code to my github/ gitlab repo
@Jeakun23
@Jeakun23 Ай бұрын
Thank you so much!! It works and you just earned a subscriber for that
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Awesome 🙂 Happy to see that video helped you...
@vedantapreetham7383
@vedantapreetham7383 Ай бұрын
Can we switch to frame 3 directly from default content ?
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
No U need to switch in sequence as for nested frames we need to switch to parent frames first
@vedantapreetham7383
@vedantapreetham7383 Ай бұрын
Ok thank you so much 🙏 keep uploading the great content
@vedantapreetham7383
@vedantapreetham7383 Ай бұрын
​@@AJAUTOMATIONthat means first swithTo( frame1) Then swithTo(frame2) and the switchTo(frame3) ?
@vedantapreetham7383
@vedantapreetham7383 Ай бұрын
Great explanation
@ujangaripin7630
@ujangaripin7630 Ай бұрын
thx man
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Welcome 👍🙂
@someoneelse8295
@someoneelse8295 Ай бұрын
thanks my guy, watched the vid on 1.5 speed as urequested
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Gr8 👍🙂
@gaddipatiprabhakar2889
@gaddipatiprabhakar2889 Ай бұрын
Please use white background....
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Thanks for asking, will use it in upcoming videos..
@Vinod-z9x
@Vinod-z9x Ай бұрын
thanks you bro
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
Welcome 👍
@skankhunt-zh1mo
@skankhunt-zh1mo Ай бұрын
can it be jdk 22 too?
@bishnuyashadash91
@bishnuyashadash91 2 ай бұрын
Really helpful!
@user-oh4xn8gf4y
@user-oh4xn8gf4y 2 ай бұрын
how can we use this from testng.xml file without using for one test in particular?
@bharathlingam6616
@bharathlingam6616 2 ай бұрын
Username is gitlab or anything can i give ?
@AJAUTOMATION
@AJAUTOMATION Ай бұрын
U Can give anything
@SachinKumar-et7oi
@SachinKumar-et7oi 2 ай бұрын
hello bhai can you pls upload next video. waiting for it. can you expediate it asap.
@AJAUTOMATION
@AJAUTOMATION 2 ай бұрын
Yes , I am trying give more time for this series videos after my own office work.. will post next video within next 2 days.
@MichaelAlaneme
@MichaelAlaneme 2 ай бұрын
That's direct to the point. It really helped
@AJAUTOMATION
@AJAUTOMATION 2 ай бұрын
Happy to see that video helped you..
@kumarraj989
@kumarraj989 2 ай бұрын
Any way to create this programmatically?
@AJAUTOMATION
@AJAUTOMATION 2 ай бұрын
I don't understand your query, what u want create ?
@PatilHeena
@PatilHeena 2 ай бұрын
Thank you for above video . What version of SCM plugin you are using for "SCM Checkout Retry Count" ? we don't see this option in our SCM setup .
@AJAUTOMATION
@AJAUTOMATION 2 ай бұрын
Version: 0.8 - plugins.jenkins.io/multiple-scms/ This plugin has been marked as deprecated but still you can make a use of this plugin. It should work fine.
@vipintekade6400
@vipintekade6400 2 ай бұрын
Dummy website will be ok like orange hrm ,etc as amazon website is frequently changed.
@AJAUTOMATION
@AJAUTOMATION 2 ай бұрын
yes you are correct , Amazon website is changing frequently. Now I observed when we try to open the registration page from Amazon's home page, it is sometime opening reg page directly and some times opening Sign in or create account page, from there we need to go to reg page. So this I need to handle in framework to run RegistrationPageTest tests. for learning and practice purpose we can take dummy or any other app website, anyhow we are trying to learn the framework design concepts so overall framework structure would be same for Amazon or any other app website, design , pages pageobjects will differ.
@jasonfranklin1677
@jasonfranklin1677 2 ай бұрын
Thank You!
@AJAUTOMATION
@AJAUTOMATION 2 ай бұрын
Welcome 🙂
@siniyaazilam9887
@siniyaazilam9887 2 ай бұрын
Thank you so much
@AJAUTOMATION
@AJAUTOMATION 2 ай бұрын
Welcome 👍
@sagardarade
@sagardarade 2 ай бұрын
Keep it up
@sagardarade
@sagardarade 2 ай бұрын
Keep it up
@SnigdhaVarma-y3u
@SnigdhaVarma-y3u 2 ай бұрын
I am getting error like Recv failure: Connection was reset