Selenium Error while launching browser - php

I am facing two issues with Selenium.
1.- Error while launching browser on windows --> Example::testMyTestCase
Issues while capturing the screenshot:
Invalid response while accessing the Selenium Server at
'http://localhost:4444/selenium-server/driver/':
ERROR Server Exception: sessionId should not be null;
has this session been started yet?
Invalid response while accessing the Selenium Server at
'http://localhost:4444/selenium-server/driver/':
Failed to start new browser session: Error while launching browser
2.- I have used Selenium on Linux. While running the code with PHPunit, the browser windows opened get closed automatically. I need to watch the log details after the execution. Is there any setting required for this?

Please try to execute this script using latest Selenium-Server.jar (selenium-server-standalone-2.23.1.jar)

Related

Error calling Php code from Xcode 12.2 dlopen libquic failed

I recently updated to Xcode 12.2. Now my php code (called from Xcode) to access and modify the local SQL database is broken.
Tried this solution:
https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_cs_disable-library-validation
by enabling hardened runtime and then adding the runtime exception to disable library validation. Now the app crashes on startup. The original error code (in Xcode) when trying to access the database (via php) was: nw_protocol_get_quic_image_block_invoke dlopen libquic failed
that led me to the supposed fix above. DB is unreachable from the app.
Now I'm not sure how to proceed. Can someone please advise.
Additionally the responseString just looks like this: responseString = Optional(<?php (php code) ?>) .. not running the php code at all
Another thing, I'm getting Status Code: 412 or Precondition Failed when trying to run php scripts from Xcode
Thread with similar issue:
https://developer.apple.com/forums/thread/666538

PHP is working in command line but error 502 in browser

Please help me, my server is crashed, for static files it's fine, but my server throws error 502 bad gateway for every php script run from browser. I created a simple test.php script, when I run this scrip from command line using php test.php it's working, but when I try to open it from my web address mydomainname(dot)com/test.php or ip_address/test.php it got 502 bad gateway.
Please help me or give me some suggestions about what to check. I'm so confused because everything looks normal here. I'm using php 7.3 and Ubuntu 16.04 by the way
PHP works because you call it directly with PHP text.php
When you try to open a page with a browser, you need a web server. Something like Apache or Nginx. You have an error because you are error on your web server configuration.
Check the log of web server to find out the problem.

i can't access my laravel development server using IP address

i'm trying to build an android app that requires interaction with a database server , i'm using my own computer for this purpose , i'm running wampserver 3.1.0 . i installed laravel successfully using composer , however when i type 192.168.1.6:8000/ to test i get a webpage displaying this error :
The following error was encountered while trying to retrieve the URL: http://192.168.1.6:8000/
Connection to 192.168.1.6 failed.
The system returned: (110) Operation timed out
The remote host or network may be down. Please try the request again.
Your cache administrator is webmaster.
note that i already started the server using the "php artisan serve --host ipaddress" command , and the permissions in httpd.conf and httpd-vhosts.conf are configured correctly .what confuses me is that when i type the same url in my phone browser it shows the laravel page with no errors whatsoever !!! , help would be much appreciated .
I can't believe i failed to notice this but i was using a hotspot shield integrated with my web browser which was blocking the connection the whole time .

heroku crashes with no data about error, just http 500

i got my app at heroku server through git, now stuff that works on my local php server keeps crashing, BUT - whereas for a crash on localhost a php engine would always give me information about the error, here i just get HTTP500.
For example - if i create empty php where all i do is divide by zero, easyphp gives me warnings\notices, while heroku server does nothing at all - empty page.
Right now the server crashes because of a DB related string( i checked), but all the feedback it gives is HTTP500 error, no details. On localhost this string works. How am i supposed to find out what's the problem? is there a way to get any feedback from heroku server?
Just use heroku logs! Apache should log the actual exception.

Apache2 with PHP - Pages Not Loading Without Bypassing Cache

I have a weird issue where my PHP pages being served by Apache2 will not load on the page without having to bypass the browser cache (Ctrl+Shift+R).
If I got to mypage.com/test.php I get a browser erro page: The connection was reset (Firefox)
or Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data. (Chrome)
If I do a Ctrl+Shift+R on the page then the test.php which is just a call to phpinfo(), then the page loads normally and I see the PHP output.
I'm running on Ubuntu with a virtual host for the specific site using PHP 5.3.2. If I do a curl on the mypage.com/test.php on the server it loads the page fine. But not on PC browsers on or off the network.
Does anyone know why this is happening or how to get Apache to serve the page without the CTRL+Shift+R?
Try use something like https://addons.mozilla.org/ru/firefox/addon/live-http-headers/ to get full text of requests and answers in browser.

Categories